Attribute and relationship inheritance in EER

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

Share on WhatsApp

← RGPV CS-502 DBMS December 2024 solved question paper

RGPV Previous Year Examination Question

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

Question (restated): Describe how attributes and relationships are inherited and explain the benefits.

Answer

Attribute and relationship inheritance in EER
Attribute and relationship inheritance in EER — conceptual illustration

Inheritance in EER

Inheritance is a mechanism by which a subclass acquires the attributes and relationship participation of its superclass. It follows the IS-A principle: every entity belonging to a subclass also belongs to its superclass. The enhanced ER model uses inheritance to represent common properties once rather than repeating them for each subtype.

Attribute inheritance

Suppose Employee has attributes EmpID, Name and Salary. Faculty and Technician are subclasses of Employee. Faculty inherits all three attributes and additionally has ResearchArea. Technician inherits the same common attributes and additionally has Skill. The inherited EmpID identifies the same real-world employee in both the superclass and subclass.

Relationship inheritance

Suppose Employee participates in Works_For with Department. Since Faculty is a subclass of Employee, a Faculty entity can participate in Works_For through its Employee membership. Faculty may additionally participate in a subclass-specific relationship Teaches with Course. Technician may participate in Maintains with Equipment. These additional relationships do not automatically apply to every Employee.

Constraints

Disjoint specialization permits at most one subclass membership; overlapping specialization permits more than one. Total specialization requires every superclass entity to belong to at least one subclass, whereas partial specialization does not. These constraints must reflect actual organizational rules.

Relational implementation

Employee(EmpID, Name, Salary, DeptID)
Faculty(EmpID, ResearchArea)
Technician(EmpID, Skill)

EmpID is the primary key in each relation and a foreign key to Employee in both subclass relations. DeptID references Department. Joining Faculty with Employee retrieves inherited attributes without duplicating them. A separate Teaches(EmpID, CourseID) relation can reference Faculty to enforce subclass-specific participation.

Advantages

Inheritance reduces redundant schema definitions, improves consistency, supports reuse of common constraints and makes complex entity hierarchies easier to maintain. It also expresses real-world semantics clearly. The designer must nevertheless enforce membership constraints and avoid unnecessary subclass complexity.

Further reading

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

← RGPV CS-502 DBMS December 2024 solved question paper

Discussion

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

Sign in to participate in the discussion.

Join the discussion