ms access training - how define relationships between

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

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

ms access training - How to define relationships between databases | Access forum

resolvedResolved · Low Priority · Version 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:

Space marks

It is good practice not i to have space marks for field names as this can lead to problems when using queries or VBA code. It is much better to use an underscore charcter to represent spaces in field names

View all Access hints and tips


Server loaded in 0.09 secs.