Generalization, specialization and aggregation in EER

December 4, 2026 · Team EasyExamNotes · 4 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-502 DBMS December 2024 solved question paper

← RGPV CS-502 DBMS November 2022 solved question paper

← RGPV CS-502 DBMS December 2020 solved question paper

← RGPV CS-502 DBMS June 2025 solved question paper

← RGPV CS-502 DBMS November 2019 solved question paper

RGPV Previous Year Examination Question

B.Tech. V Semester | CS-502 (GS) | December 2024 | 1(b)

Question (restated): Using suitable ER diagrams, illustrate generalization, specialization and aggregation.

Answer

Enhanced ER model

The enhanced entity relationship (EER) model extends ordinary ER modelling with superclass and subclass concepts. Generalization and specialization represent IS-A relationships, while aggregation represents a relationship as a higher-level conceptual object.

Generalization

Generalization is a bottom-up process in which common attributes of several entity types are combined into a superclass. For example, Car and Truck both have registration number, manufacturer and model. These common attributes can be placed in Vehicle, while seating capacity remains specific to Car and payload remains specific to Truck. Every Car or Truck is also a Vehicle.

Specialization

Specialization is a top-down process in which a superclass is divided into subclasses according to distinguishing characteristics. An Employee may be specialized into Faculty and Administrator. Both inherit employee ID and name; Faculty may additionally have research area, while Administrator has office section. Specialization can be disjoint, meaning an entity belongs to at most one subclass, or overlapping, meaning multiple memberships are permitted. It can be total, requiring every superclass entity to belong to a subclass, or partial.

           Employee
              |
             ISA
           /     \
       Faculty   Administrator

Aggregation

Aggregation is used when another relationship must refer to a relationship instance rather than to an individual entity. Suppose Employee works on Project through Works_On, which records hours. A Manager monitors a particular employee-project assignment. Aggregating Employee, Works_On and Project permits Monitors to refer to that assignment.

[ Employee — Works_On — Project ]
                 |
              Monitors
                 |
               Manager

Comparison

Concept Purpose Approach
Generalization Combine common features Bottom-up
Specialization Represent distinct subtypes Top-down
Aggregation Relate to a relationship instance Abstraction

These concepts reduce redundancy, express semantic constraints and make complex database designs easier to understand.

Further reading

Silberschatz, Korth and Sudarshan, Database System Concepts; Elmasri and Navathe, Fundamentals of Database Systems.


RGPV CS-502 (GS) | November 2022 | Q8(b) | 7 marks

Question (restated): Compare specialization and generalization in enhanced ER modelling.

Answer

Specialization is a top-down design process that divides a superclass into subclasses based on distinguishing characteristics. Generalization is a bottom-up process that combines entity types with common attributes into a superclass. Both produce an IS-A hierarchy and support inheritance.

Aspect Specialization Generalization
Direction Top-down Bottom-up
Starting point General entity Specific entities
Goal Represent distinguishing features Extract common features
Example Employee → Engineer, Clerk Car, Truck → Vehicle

For example, Employee has EmpID and Name. Engineer adds Skill and Clerk adds TypingSpeed. Both inherit EmpID and Name. In generalization, Car and Truck share RegistrationNo and Manufacturer, so these attributes can be placed in Vehicle while each subclass retains its specific properties.

Disjoint subclasses cannot overlap; overlapping subclasses may share members. Total specialization requires every superclass member to belong to at least one subclass; partial specialization permits members belonging to none. These constraints describe the business rules and must be represented in the schema. A relational implementation can use a superclass table and subclass tables whose primary keys also reference the superclass.

Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts.

December 2020 examination question

Explain specialization and generalization in ER modelling with examples.

Specialization is a top-down process that divides a superclass into subclasses based on distinguishing properties. Generalization is bottom-up: common properties of several entity types are combined into a superclass. Both use an IS-A relationship and support inheritance. For example, Employee(EmpID,Name) can specialize into SalariedEmployee(MonthlySalary) and HourlyEmployee(HourlyRate). Subclasses inherit EmpID and Name. Disjointness determines whether membership in multiple subclasses is allowed; completeness determines whether every superclass entity must belong to a subclass. These constraints should reflect the business rules.

Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts.

June 2025 – Q2(b)

Distinguish generalization and specialization in the ER model.

Generalization is bottom-up: Car and Truck share attributes such as registration number and are generalized into Vehicle. Specialization is top-down: Employee is divided into Manager and Engineer. Both represent IS-A relationships and support inheritance of attributes and relationships. Subclasses may be disjoint or overlapping and coverage may be total or partial. The direction of design reasoning differs, but the resulting hierarchy can be identical.

https://easyexamnotes.com/wp-content/uploads/2026/12/eer-generalization-specialization-aggregation-jun2025.png


November 2019 – Question 1(b)

Question (restated): Explain generalization and aggregation with examples.

Answer

Generalization is a bottom-up abstraction: Car and Truck can be combined into Vehicle, inheriting common attributes such as registration number. Their specific attributes remain in their subtypes. Aggregation treats a relationship and its participating entities as a higher-level object. For example, Employee works_on Project can be aggregated as an Assignment, which a Manager monitors. This expresses a relationship involving another relationship without confusing it with subtype inheritance.

← RGPV CS-502 DBMS December 2024 solved question paper

← RGPV CS-502 DBMS November 2022 solved question paper

← RGPV CS-502 DBMS December 2020 solved question paper

← RGPV CS-502 DBMS June 2025 solved question paper

← RGPV CS-502 DBMS November 2019 solved question paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion