Entity-Relationship Model Cont ..: CST203-2 Database Management Systems
Entity-Relationship Model Cont ..: CST203-2 Database Management Systems
Cont…..
CST203-2 Database Management Systems
Lecture 4
Student entity
The discriminator (or partial key) of a weak entity set is the set of
attributes that distinguishes among all the entities of a weak entity set.
We underline the discriminator of a weak entity set with a dashed line.
3. Inverse of 2nd one : if an entity type exists with a single attribute and is related
to only one entity …….
we designate subgroupings within an entity set that are distinctive from other
entities in the set.
Specific attributes
Specific relationships
Attribute inheritance – a lower-level entity set inherits all the attributes and
relationship participation of the higher-level entity set to which it is linked
Specialization Example
Generalization
A bottom-up design process – combine a number of entity sets
that share the same features into a higher-level entity set.
Disjointness constraint
Constraint on whether or not entities may belong to more than one lower-level entity set within a
single generalization.
Disjoint
an entity can belong to only one lower-level entity set
Overlapping
an entity can belong to more than one lower-level entity set
Completeness constraint -- specifies whether or not an entity in the higher-level entity set must
belong to at least one of the lower-level entity sets within a generalization.
total specialization : an entity must belong to one of the lower-level entity sets
Partial specialization : an entity need not belong to one of the lower-level entity sets
Insertion and deletion rules for
specialization and generalization
Deleting from superclass
Inserting in a superclass
Predicate defined specialization
Total specialization
Aggregation
A class type really represents a collection of individual
components
The system is an aggregation of components