Previous Topic: Cardinality and Optionality within RelationshipsNext Topic: eGolf Services Relationship Cardinality and Optionality


Examples of Relationships

Types of relationships include one-to-one, one-to-many, and many-to-many.

One-to-one Relationship Example

In this example, we have proposals and contracts.

This is an example of a one-to-one optional relationship.

Examples of Relationships

Note: The line crossing the relationship line indicates one.

One-to-many Relationship Example

In this example, we have employees and dependents.

This is an example of the most common relationship, a one-to-many optional-on-the-many-side relationship.

Note: The crow’s foot indicates the “many” and the “o” on the line indicates that the relationship is optional.

Examples of Relationships

Many-to-many Relationship Example

In this example, we have products and warehouses.

This is an example of a many-to-many relationship.

Examples of Relationships

What would be the relationship membership cardinality and optionality for Golfer maintains Scoring Record?