Enhanced ER Model
Enhanced ER Model
Constraints
There are two types of constraints on the “Sub-
class” relationship.
Total or Partial Sub-classing
Total: Every entity in the superclass must be in at
least one subclass (e.g., every employee is either
salaried or hourly).
Partial: Some entities may not belong to any
subclass (e.g., not all employees are a secretary,
engineer, or technician).
Total subclassing means complete coverage;
partial means incomplete coverage.
Overlapped or Disjoint Sub-Classing
Overlapped: An entity can belong to multiple
subclasses.
Disjoint: An entity can belong to only one
subclass.
In the given examples, both job-type and salary-
based subclassing are disjoint, meaning no
overlap.
Note - These constraints are independent of each
other: can be "overlapped and total or partial" or
"disjoint and total or partial". Also, sub-classing
has transitive properties.
Multiple Inheritance (Sub-Class of Multiple
Superclasses)
An entity can be a sub-class of multiple entity
types such entities are sub-class of multiple
entities and have multiple super-classes. In
multiple inheritances, attributes of sub-class are
the union of attributes of all super-classes.
Example: Teaching Assistant can subclass of
Employee and Student both. A faculty in a
university system can be a subclass of Employee
and Alumnus.
Union
Set of Library Members is UNION of Faculty,
Student, and Staff. A union relationship indicates
either type; for example, a library member is
either Faculty or Staff or Student.
Below are two examples that show how UNION
can be depicted in ERD – Vehicle Owner is
UNION of PERSON and Company, and RTO
Registered Vehicle is UNION of Car and Truck.