Enhanced Entity-Relationship (EER) Model
Enhanced Entity-Relationship (EER) Model
Enhanced Entity-Relationship (EER) Model
Enhanced Entity-Relationship
(EER) Model
1
21-Sep-20
2
21-Sep-20
Attribute Inheritance in
Superclass / Subclass Relationships
An entity that is member of a subclass
inherits all attributes of the entity as a
member of the superclass
It also inherits all relationships
Specialization
3
21-Sep-20
Example of a Specialization
Generalization
The reverse of the specialization process
Several classes with common features are
generalized into a superclass; original classes
become its subclasses
Example: CAR, TRUCK generalized into VEHICLE;
both CAR, TRUCK become subclasses of the
superclass VEHICLE.
We can view {CAR, TRUCK} as a specialization
of VEHICLE
Alternatively, we can view VEHICLE as a
4
21-Sep-20
5
21-Sep-20
Completeness Constraint:
Total specifies that every entity in the superclass must be
a member of some subclass in the specialization/
generalization
Shown in EER diagrams by a double line
6
21-Sep-20
Disjoint, partial
Overlapping, total
Overlapping, partial
7
21-Sep-20
8
21-Sep-20
9
21-Sep-20
Example of categories
(UNION TYPES)
10
21-Sep-20
S1 ∪ S2 ∪ … ∪ Sn = G;
Otherwise, Z is partial.
Z is disjoint if we always have:
Si ∩ Sj empty-set for i ≠ j;
Otherwise, Z is overlapping.
11
21-Sep-20
12
21-Sep-20
Acknowledgement
Reference for this lecture is
13