Mod4 Advanced-data Modeling Flashcards
Result of adding more semantic constructs to the original
entity-relationship (ER) model
EERM
Diagram using this model
EERD
Contains unique characteristics of each entity subtype
Entity subtype
◆ Generic entity type related to one or more entity subtypes
◆ Contains common characteristics
Entity supertype
✓Depicts arrangement of higher-level entity supertypes and lower-level entity
subtypes
✓Relationships described in terms of “IS-A” relationships
✓Subtype exists only within the context of the supertype
✓Every subtype has only one supertype to which it is directly related
✓Can have many levels of supertype/subtype relationships
Specialization heirarchy
✓Enables entity subtype to inherit attributes and relationships of the supertype
✓All entity subtypes inherit their primary key attribute from their supertype
✓At the implementation level, the supertype and its subtype(s) maintain a 1:1
relationship
✓Entity subtypes inherit all relationships in which the supertype entity participates
✓Lower-level subtypes inherit all attributes and relationships from all upper-level
supertypes
inheritance
✓ An attribute in the supertype entity
✓ Determines to which entity subtype each supertype occurrence is
related
✓ Default comparison condition for subtype discriminator attribute
is equality comparison
✓ Subtype discriminator may be based on other comparison
condition
subtype discriminator
◆ Also called non-overlapping subtypes.
◆ Subtypes that contain a unique subset of the supertype
entity set
disjoint subtypes
Subtypes that contain non-unique subsets of the supertype
entity set.
overlapping subtypes
◆ Specifies whether entity supertype occurrence must be a member of at least
one subtype
completeness constraints
◆ Symbolized by a circle over a single line
◆ Some supertype occurrences are not members of any subtype
partial completeness
◆ Symbolized by a circle over a double line
◆ Every supertype occurrence must be a member of at least one subtype
total completeness
- Identifies more specific entity subtypes from higher-level entity supertype
- Top-down process
- Based on grouping unique characteristics and relationships of the subtypes
Specialization
- Identifies more generic entity supertypes from lower-level entity subtypes
- Bottom-up process
- Based on grouping common characteristics and relationships of the
subtypes
generalization
the most important characteristic of an entity
primary key