6) The Entity Relationship (ER) Model
6) The Entity Relationship (ER) Model
– Entities
– Attributes
– Relationships
Entities
• In both Chen and Crow’s Foot models, entity is represented by rectangle containing entity’s name
Attributes
• Characteristics of entities
• In Chen model, attributes are represented by ovals and are connected to entity rectangle with a line
• In Crow’s Foot model, attributes are written in attribute box below entity rectangle
Domains
Single-Valued Attributes
• Single-value attribute can have only a single value
Multivalued Attributes
Derived Attributes
Relationships
• Relationship classification is difficult to establish if know only one side of the relationship
• Connectivity
• Cardinality
– Expresses minimum and maximum number of entity occurrences associated with one occurrence
of related entity
Weak Entities
– Existence-dependent
– Has primary key that is partially or totally derived from parent entity in relationship
• Database designer usually determines whether an entity can be described as weak based on business
rules