Identify different types of relationships used in Access.
Different Types of Relationships used in Access
In working with Access, either through your own experience or by taking previous courses on Access, you should have had some contact with the basics of Access relationships. Access relationships allow you to tell Access how you want pieces of information to "relate" to one another.
Types of Relationships
There are three types of relationships in Access:
The most common type of relationship, this represents having one record in a table relating to many records in another table.A good example of this is in the project database, Consulting . In the project database, one client can have many projects. They are related on the ClientNo field. You can see this relationship in the following figure:
This relationship is used to define when many records in one table can relate to many records in another table.
An example of a many-to-many relationship would be one client having many consultants working for them, and one consultant having many clients. In the Consulting
database, this would be tracked using the Project table, and would look like this:
This relationship is used to represent a one-to-one correspondence between two tables based on the primary key fields in both tables.
For the purposes of this module, a new table has been created and added to the project database called ConsultantBankInfo. For the purposes of the course project, this table contains sensitive data that you may not want to include in the Consultant table itself.
There will be one record in the ConsultantBankInfo table for each of the records in the Consultant table. Here is how the relationship looks in Access:
The symbols on the end of the join lines are as follows: 1 means one record, the infinity symbol means many.
The following page describes the three relationship types used in data modeling described using entity relationship diagrams.
Three Relationship Types using ERD.
In the next lesson, you will learn how to create one-to-one and one-to-many relationships.
entity relationship diagram: An entity relationship diagram (ERD) is a graphical representation that depicts relationships among people, objects, places, concepts or events within an information technology system.