DBMS 8
DBMS 8
Chittaranjan Pradhan
Generalization
System 8 Constraints on
Generalization/Specia-
lization
Chittaranjan Pradhan
School of Computer Engineering,
KIIT University
8.1
Enhanced ER-Model
Specialization
Chittaranjan Pradhan
Specialization
Generalization
Specialization
Constraints on
Generalization/Specia-
The process of designating sub groupings within an entity set is lization
8.2
Enhanced ER-Model
Specialization...
Chittaranjan Pradhan
Constraints on
Generalization/Specia-
lization
Aggregation
8.3
Enhanced ER-Model
Generalization
Chittaranjan Pradhan
Generalization Specialization
Generalization
The commonality can be expressed by Generalization, which is
Constraints on
a containment relationship that exists between a higher-level Generalization/Specia-
lization
entity set and one or more low-level entity sets Aggregation
• To create a generalization, the attributes must given a
common name and represented with the higher-level entity
• Generalization is a simple inversion of specialization
• Specialization adopts top-down approach, while
Generalization adopts bottom-up approach
• A crucial property of the higher-level and lower-level
entities created by specialization and generalization is
attribute inheritance
• A lower-level entity set (or subclass) also inherits
participation in the relationship sets in which its
higher-level entity (or superclass) participates
8.4
Enhanced ER-Model
Generalization...
Chittaranjan Pradhan
Specialization
Generalization
Constraints on
Generalization/Specia-
lization
Aggregation
8.5
Enhanced ER-Model
Constraints on Generalization/Specialization
Chittaranjan Pradhan
Specialization
Generalization
8.6
Enhanced ER-Model
Constraints on Generalization/Specialization...
Chittaranjan Pradhan
b. Disjoint or Overlapping
Specialization
Constraints on
belong to only one lower-level entity set Generalization/Specia-
lization
• Overlapping: In overlapping generalizations, the same Aggregation
entity may belong to more than one lower-level entity set
within a single generalization
• Lower-level entity overlap is the default case. A
disjointness constraint must be placed explicitly on a
generalization. This is done by adding the word disjoint
next to the ISA symbol
8.7
Enhanced ER-Model
Constraints on Generalization/Specialization...
Chittaranjan Pradhan
Specialization
Constraints on
Completeness constraint on a generalization/specialization Generalization/Specia-
lization
specifies whether or not an entity in the higher-level entity set Aggregation
must belong to at least one of the lower-level entity sets within
the generalization/specialization
• Total generalization/specialization: Each higher-level
entity must belong to a lower-level entity set
• Partial generalization/specialization: Some higher-level
entities may not belong to any lower-level entity set
• Partial generalization is the default. Total generalization in
an ER diagram can be specified by using a double line to
connect the box representing the higher-level entity set to
the triangle symbols
8.8
Enhanced ER-Model
Aggregation
Chittaranjan Pradhan
Specialization
Aggregation
Generalization
Aggregation
8.9
Enhanced ER-Model
Aggregation...
Chittaranjan Pradhan
Aggregation
Specialization
8.10