Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

ms access training - how define relationships between

Forum home » Delegate support and help forum » Microsoft Access Training and help » ms access training - How to define relationships between databases

ms access training - How to define relationships between databases

ResolvedVersion Standard

Jonathan has attended:
Access Introduction course
Access Intermediate course
Access Advanced course

How to define relationships between databases

1 to 1
many to many
1 to many

RE: How to define relationships between databases

Hi Jonathan

The relationships between tables are typically defined by the data in the tables. When you link a common field between two tables, then the relationship type is created.

One-to-One
So if you have two tables that will only ever contain one record relating to one record, then you will have a one-to-one relationship. It is unusual to have a separate table for a one-to-one relationship, as usually you would just have an additional field in the table.


One-to-Many
This is the most common type of relationship between any two tables. An example could be - one store, many products, etc.


Many-to-Many
This type of relationship requires an interlinking table to match the relationship of the two other tables. For example, several clients making several purchases, over a period of time. The client would come back an make another purchase. One table would contain the Client info, the other table the Product info. The interlinking table would be a Sales table of sorts and would record when the client came in, what there details are and what they pruchased.


Does that make sense?

Regards

Richard

Access tip:

Random sampling

Data is th key to a good database, therefore checking is essential.

A good way of checking data is by random sampling. You can do this in a query, by typing the follow:
1) In the Field box create a RandonID field eg. Randon Id: Rnd(fieldname])

2) sort the field
3)Right click and chage the properties for To value to be the number of randon records you want to see.

4) Change the set to Show row for Randon ID to be False, add all the other fields you want to see and the run the query.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.