Professional Documents
Culture Documents
Istm 489 - 3
Istm 489 - 3
Operational Constraints
Supertypes and Subtypes
• Supertype (example: Employee)
– a generic entity that has a relationship with one or more subtypes
• Subtype (example: Manager)
– a subgrouping of a supertype entity that is meaningful to an
organization
– shares all attributes of its supertype, but also has unique attributes of
its own and/or :
– has relationships with other entities distinct from those of other
subtypes
Attribute Inheritance
• The property by which subtype entities inherit values of all
attributes of the supertype.
• This important property makes it unnecessary to include
supertype attributes or relationships redundantly with the
subtypes.
Basic Notation
Supertype/Subtype Rules
Use this type of relationship when either (or both) of the
following are present:
1. When there are attributes that apply to some (but not all) of
the instances of an entity type
2. When the instances of a subtype participate in a relationship
unique to that subtype
Relationships and Subtypes
• Relationships at the supertype level indicate that all subtypes
will participate in the relationship
• The instances of a subtype may participate in a relationship
unique to that subtype. In this situation, the relationship is
shown at the subtype level
For Example…
Generalization and Specialization
• Completeness • Disjointness
Addresses the Addresses the question
question of whether of whether an instance
an instance of a of a supertype may
supertype must also simultaneously be a
be a member of at member of two (or
least one subtype more) subtypes
Completeness Constraint Rules
• Total Specialization Rule (Double-line notation)
Specifies that each entity instance of the supertype must be a member of some
subtype in the relationship (Example: all STUDENTS are either UNDERGRADUATE or
GRADUATE students)
Structural
constraints
Operational
constraint
Example 2
Business Rule 1:
For a faculty
member to be
assigned to teach
a section of a
course, the
faculty member
must be qualified
to teach the
course for which
that section is
scheduled.
Example 3