Enhanced Entity Relationship
Enhanced Entity Relationship
When translating EER diagrams into relational schemas, each entity and relationship is
typically represented as a table. Superclasses and subclasses can be mapped using
various strategies:
Single Table Inheritance: All entities (superclass and subclasses) are stored in a
single table with columns for all possible attributes and a discriminator column to
identify the subclass.
Class Table Inheritance: Each class in the hierarchy (superclass and each subclass)
has its own table. The superclass table contains common attributes, while each
subclass table contains specific attributes and a foreign key referencing the superclass
table.
Concrete Table Inheritance: Only subclasses have tables that include all attributes,
both inherited and specific. The superclass does not have a separate table.
These resources provide comprehensive insights into the EER model, its components, and
applications in database design.