Chapter 5 Flashcards
(31 cards)
Extended entity relationship model (EERM)
-Result of adding more semantic constructs to the original entity relationship model
-Extended entity relationship diagram (EERDs) use the EERM
Entity supertype
-Generic entity type that is related to one or more entity subtypes.
-Contains common characteristics.
Entity subtype
-Contains unique characteristics of each entity subtype
Criteria for supertype and subtype usage
-There must be different, identifiable kinds of the entity in the user’s environment.
-The different kinds of instances should each have one or more attributes that are unique to that kind of instance
Specialisation Hierarchy
-Depicts parent and child entities
Specialisation hierarchy details
-Depicts arrangement of higher-level entity supertypes and lower-level entity subtypes
-Relationships are described in terms of “is-a” relationships
-Subtype exists within the context of a supertype
-Every subtype has one supertype to which it is directly related
-Supertype can have many subtypes.
A specialisation hierarchy provides means to…
-Support attribute inheritance
-Define a special supertype attribute known as the subtype discriminator
-Define disjoint or overlapping constraints and complete or partial constraints
Inheritance
Enables an entity subtype to inherit attributes and relationships of the supertype
Inheritance details
-All entity subtypes inherit their primary key attribute from their supertype
-At the implementation level, supertype and its subtypes maintain a 1:1 relationship
-Entity subtypes inherit all relationships in which supertype entity participates
-Lower-level subtypes inherit all attributes and relationships from its upper-level supertypes.
Subtype discriminator
Attribute in the supertype entity that determines to which entity subtype the supertype occurrence is related
-Default comparison condition is the equality comparison
-In some situations, the subtype discriminator is not necessarily based in an equality comparison
Disjoint subtypes
Contain a unique subset of the supertype entity set (known as nonoverlapping subtypes)
Overlapping subtypes
Contain nonunique subsets of the supertype entity set (implementation requires the use of one discriminator attribute for each type)
Completeness constraint
Specifies whether each supertype occurrence must also be a member of at least one subtype
Types of completeness constraints
-Partial completeness
-Total completeness
Partial completeness
Not every supertype occurrence is a member of a subtype
Total completeness
Every supertype occurrence must be a member of at least one subtype
Entity clustering
Virtual entity type used to represent multiple entities and relationships in ERD
-Formed by combining multiple interrelated entities into a single, abstract entity object
Entity clustering general rule
Avoid the display of attributes to eliminate complications that result when the inheritance rules change
Entity integrity: Primary keys
Single attribute or combination of attributes
-Uniquely identifies each entity instance
-Works with foreign keys to implement relationships
Natural key or natural identifier
Real-world identifier used to uniquely identify real-world objects
-Stuff like invoice number or student number
Desirable primary key characteristics
-Non intelligent
-No change over time
-Preferably single-attribute
-Preferable numeric
-Security-complaint
Identifiers of composite entities
-Each primary key combination is allowed once in M:N relationships
Identifiers of weak entities
Strong identifying relationship with the parent entity
Identifiers of weak entities
-represents a real-world object that is existence-dependent on another real-world object
-represented in the data model as two separate entities in a strong identifying relationship