Professional Documents
Culture Documents
Module 4 - Relationship and Cardinality PDF
Module 4 - Relationship and Cardinality PDF
1
Database System Concepts and Architecture
Cardinality
Maximum Cardinality
One – to – One Relationship
• One-to-One (1:1)
• A single entity instance of one entity class is related to a single entity instance of
another entity class.
Course Module
One – to – Many Relationship
• One-to-Many (1: N)
• A single entity instance of one entity class is related to a multiple entity instance of
another entity class.
Minimum Cardinality
Course Module
Relationship Modeling Considerations
1. Multiple Relationships
This relationship exists if they are independent or different to each other.
2. Transitive Relationship
Entities can be related indirectly by two (2) relationships.
Fundamentals of Database Systems
5
Database System Concepts and Architecture
3. Attributes of a Relationship
Relationships can have attributes
4. Relationship as an Entity
Relationships can also be an entity, especially if it has an attribute
Course Module
Degree of Relationship
Describes the number of entities involved in a relationship.
• Unary (One Entity)
• Binary (Two Entities)
• Ternary (Three Entities)
• N’ary (more the three entities)
Unary Relationship
Ternary Relationship
Fundamentals of Database Systems
7
Database System Concepts and Architecture
N’ary Relationship
Course Module