98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum 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
Resolved · 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
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Access tip:Space marksIt 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 |