INLS161-001 Fall 2021

Tools for Information Literacy




Relationships connect entities across the database


A relationship requires a copy of the primary key attribute of one entity in one entity set
to be inserted
as a foreign key attribute in a second entity in a second entity set.

Primary and Foreign Keys

The link between the two like attributes is the relationship.

The image is a screenshot from the MS Access database tool (which we will not be using), but it describes the essence of good relationships.

relationships info
how to create relationships types of relationships

back to top

Types of relationships

one-to-one (unusual)

1:1 relationship

In a one-to-one relationship, each record in Entity Class A can have only one matching record in Entity Class B, and each record in Entity Class B can have only one matching record in Entity Class A.

one-to-many (most common)

1:Many relationship

in a one-to-many relationship, a record in Entity Class A can have many matching records in Entity Class B, but a record in Entity Class B has only one matching record in Entity Class A

note that your Entity Class properties provide you advice about how to ensure the relationships are based on the proper field properties.

many-to-many (less common than one-to-many, but essential in many cases)

Many:Many relationship

in a many-to-many relationship, a record in Entity Class A can have many matching records in Entity Class B, and a record in Entity Class B can have many matching records in Entity Class A

how to create relationships types of relationships

back to top

Copyright © R.E. Bergquist 2014- | Last Updated on | Powered by w3.css