EER Model
EER Model
EER Model
Relationship (EER)
Model
Class Presentations on Distributed Database System by Dr. Anand Singh Jalal
Enhanced Entity-Relationship (EER) Model
¨ Subclasses
Ø Subgroupings of the entities of an entity type
Ø An entity type as a superclass of subclasses
Ø Examples
n EMPLOYEE {SALARIED_EMPLOYEE, HOURLY_EMPLOYEE}
n PATIENT {OUTPATIENT, INPATIENT}
n STUDENT {FULL-TIME, PART-TIME}
¨ Attribute-defined specialization
Ø This constraint specifies that members of a subclass
must satisfy the predicate and that all entities of
the superclass entity type whose attribute value
satisfy the predicate condition must belong to the
particular subclass.
§ Based on values of a superclass attribute (defining
attribute)
§ All subclasses have their member condition on the same
attribute of the superclass
§ Predicate-defined (condition defined) subclass
§ JobType = ‘Engineer’ => defining predicate
Defining
attribute
Predicate condition
Predicate-defined
subclass
Partial
total
Belongs
BOOK SUBJECT
to
Written
by
Belongs
BOOK SUBJECT
to
Written
by
AUTHOR