Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 1: Enhanced ER - Specialization and Generalization

Lesson 11 of 28 in the free Database Management Systems notes on Siksha Sarovar, written by Rohit Jangra.

11.1 Why Enhanced ER (EER)?

Basic ER models are great for traditional applications, but they struggle with complex data (like CAD/CAM, GIS, or medical systems). The EER Model adds concepts like Subclasses and Superclasses.

11.2 Superclasses and Subclasses

  • Superclass: A generic entity type that contains common attributes (e.g., EMPLOYEE).
  • Subclass: A specialized group of entities that inherit attributes from the superclass but have their own specific ones (e.g., SECRETARY, ENGINEER).

11.3 Specialization (Top-Down)

Specialization is the process of defining a set of subclasses of an entity type.

  • Example: We specialize EMPLOYEE based on job type into {MANAGER, SALESMAN, OFFICER}.
  • Inheritance: An entity in a subclass "IS-A" member of the superclass. It inherits all attributes (Name, SSN) and relationships of the superclass.

11.4 Generalization (Bottom-Up)

Generalization is the reverse of specialization. We take several entity types with common features and suppress their differences to create a single superclass.

  • Example: We have CAR and TRUCK. We generalize them into VEHICLE.
  • Attributes like Price and LicenseNumber move to the superclass.

11.5 Summary of IS-A Relationship

The relationship between a subclass and a superclass is called an IS-A relationship.

  • A Secretary is an Employee.
  • An Engineer is an Employee.