Enhanced Entity Relationship Model
Enhanced Entity Relationship Model
Relationship Model
By:-
Dr. Vani Kapoor Nijhawan
Assistant Professor, VIPS
Enhanced Entity-Relationship and Object
Modeling
EER stands for Enhanced ER or Extended ER. The various EER Model Concepts
• Additional concepts:
• Specialization/Generalization
• The additional EER concepts are used to model applications more completely and more
accurately.
Subclass - Often an Entity has many subgrouping which are meaningful and need to be
explicitly represented. These are called subclasses.
Superclass - Is the term used to describe the Entity that contains a subclass(s).
A class/subclass relationship is also called IS-A relationships e.g. SECRETARY IS-A EMPLOYEE,
TECHNICIAN IS-A EMPLOYEE, etc.
An entity that is member of a subclass represents the same real-world entity as some member of the superclass:
• An entity cannot exist in the database merely by being a member of a subclass; it must also be a member of the
superclass
• A member of the superclass can be optionally included as a member of any number of its subclasses.
Examples: A salaried employee who is also an engineer belongs to the two subclasses:
ENGINEER, and
SALARIED_EMPLOYEE
5
MANAGER,
ENGINEER, and
SALARIED_EMPLOYEE
inherited attributes.
Specialization
• The set of subclasses is based upon some distinguishing characteristics of the entities in
the superclass
The subclass can also participate in specific relationship types. For example in fig 4.1, a
relationship BELONGS_TO of HOURLY_EMPLOYEE
10
Generalization
• Example: CAR, TRUCK generalized into VEHICLE; both CAR, TRUCK become
subclasses of the superclass VEHICLE.
Figure 4.3a shows CAR and TRUCK with several common attributes. Figure 4.3b
shows VEHICLE superclass with CAR and TRUCK subclasses.