|
|
To express the types of relationships between tables, use these terms:
Term | Symbol | Description | Example |
---|---|---|---|
One to One |
|
For a single record in one table there is only one related record in another table. | A contact is related to only one account; therefore, the relationship between the CONTACT and ACCOUNT tables is One to One. |
Zero to One |
|
For a single record in one table there is none or one related record in another table. A Zero to One relationship will occur after a table has been set up with a One to One relationship to another table that does not have any records. | An activity might not be related to any opportunities. If it is related to an opportunity it is only related to one opportunity; therefore, the relationship between the ACTIVITY and OPPORTUNITY tables is Zero to One. |
One to Many |
|
For a single record in one table there is one or more related records in another table. | More than one contact can be associated with an account, but at least one account is always associated with a contact; therefore, the relationship between the ACCOUNT and CONTACT tables is One to Many. |
Zero to Many |
|
For a single record in one table, there may be zero or many records in another table. A Zero to Many relationship will occur after a table has been set up with a One to Many relationship to another table that does not have any records. | A contact may have zero or many activities; therefore, the relationship between the CONTACT and ACTIVITY tables is Zero to Many. |
Many to Many |
![]() |
There are many records in one table that relate to many records in another table. | A user can have many activities and an activity can have many users; therefore, the relationship between the USERINFO and ACTIVITY tables is Many to Many. |