Enhanced Entity-Relationship(EER) Model
Enhanced Entity-Relationship(EER) Model
Handwritten Notes- Click Here
The Enhanced Entity-Relationship (EER) Model is an extended form of the traditional Entity-Relationship (ER) Model.
The basic ER model is useful for representing entities, attributes, and relationships. However, some real-world database applications contain more complex structures such as different types of entities, inheritance, and hierarchical relationships.
The EER model adds additional concepts to the ER model so that these complex requirements can be represented more clearly.
The important concepts of the EER Model include:
- Superclass and Subclass
- Specialization
- Generalization
- Inheritance
- Disjoint and Overlapping Constraints
- Total and Partial Specialization
- Aggregation
1. Superclass and Subclass
- A superclass is a higher-level entity that contains common attributes shared by different entities.
- A subclass is a lower-level entity that contains attributes specific to that particular entity. A subclass inherits the attributes and relationships of its superclass.
- This concept is called inheritance. It helps reduce redundancy and makes the database design easier to understand.
Example: Employee Superclass
- Consider Employee as a superclass. It contains common attributes such as Emp_ID, Name, and Salary.
- The subclasses are Engineer, Technician, and Secretary. Each subclass has its own additional attributes.
- Engineer has Skill.
- Technician has Grade.
- Secretary has Typing Speed.
2. Specialization (Bottom-Up Approach)
- Specialization is the process of dividing a superclass into subclasses based on unique features or characteristics.
- It follows a bottom-up approach.
- For example, a Vehicle superclass can be divided into the subclasses Car and Truck.
3. Generalization (Top-Down Approach)
- Generalization is the reverse of specialization. It combines multiple similar entities into one common superclass.
- It follows a top-down approach
Example: Vehicle Generalization
- Car and Truck are similar entities because both represent vehicles. Therefore, they can be generalized into a Vehicle superclass.
- The common attributes of Vehicle may include Vehicle_ID and Price.



Comments
Post a Comment