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.
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.
how to create relationships types of relationships
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.
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.
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
Copyright © R.E. Bergquist 2014- | Last Updated on | Powered by w3.css