Enhanced Entity Relationship Model: IS 2511 - Fundamentals of Database Systems
Enhanced Entity Relationship Model: IS 2511 - Fundamentals of Database Systems
Module 4:
Enhanced Entity Relationship Model
Overview
◉ We learned that:
2. We can query the database (retrieve data from tables in the database).
3. We can update the database (change, add, or delete data from tables in the
database).
Superclass
Person
Teacher Student
Subclasses
1. Subclasses and Superclasses
d
Salary
GPA
Teacher Student
Supclasses
1. Subclasses and Superclasses
d
Salary
GPA
Teacher Student
1. Subclasses and Superclasses
◉ Specialization: Process of defining a set of subclasses of an entity type.
◉ Certain attributes may apply to some but not all entities of the superclass
Subclasses and Superclasses
Subclasses and Superclasses
◉ Generalization: Process of defining a generalized entity type from the given
entity types
Two options:
◉ Disjointness: Can be either an entity of the subclass ‘A’ or the subclass ‘B’.
◉ Overlapping: Can be both an entity of the subclass ‘A’ and the subclass ‘B’
Disjointness constraint -> Disjointness
X X X X X X
X X
O for overlapping
o
Two options:
◉ Total: Each entity (instance) of the superclass entity type has to be an entity of at
least one of the subclasses
◉ Partial: Entities of the superclass entity type do not have to be an entity of at least
one the subclasses
Completeness constraint -> Total participation
A student has to be d
current, graduated, or
incomplete.
Why d?
Completeness constraint -> Partial participation
Why o?
Summary on constraints
Summary on constraints
◉ Four types of constraints:
1. Disjoint Total
2. Disjoint Partial
3. Overlap Total
4. Overlap Partial
Summary on EER
◉ EER has features proposed to improve the ER