Chapter 5 Flashcards
Advanced Data Modeling
Entity supertype
Generic entity type that contains the common characteristics of entity subtypes
Entity subtype
- a subset of an entity supertype
- Contains unique characteristics of each entity
Disjoint subtypes
these are unique and nonoverlapping subtype entity set
Overlapping subtypes
- contain nonunique subsets of the supertype entity set
- a condition in which each entity instance(row) of the supertype can appear in more than one subtype
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 subtypes
entity cluster (Virtual entity type)
- used to represent multiple entities and relationships in ERD
- Formed by combining multiple interrelated entities into a single, abstract entity object
- General rule: avoid the display of attributes to eliminate complications that result when the inheritance rules change
Primary key
- single attribute or a combination of attributes
- Uniquely identifies each entity instance
- Guarantees entity integrity
- Works with foreign keys to implement relationships
Natural key or natural identifier
- real-world identifier used to uniquely identify real-world objects
- Familiar to end users and forms part of their day-to-day business vocabulary
- Used as the primary key of the entity being modeled
Desirable primary key characteristics
- Non intelligent
- No change over time
- Preferably single-attribute
- Preferably numeric
- Security-compliant
Identifiers of composite entities
Each primary key combination is allowed once in M:N relationship
Identifiers of weak entities
- Strong identifying relationship with the parent entity
- 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
When to use surrogate primary keys
- Useful when there is no natural key
- Helpful if selected candidate key has embedded semantic contents or is too long
Implementing 1:1 Relationships (1 of 3)
Place primary key
Place primary key of the parent entity on the dependent entity as foreign key
Implementing 1:1 Relationships (1 of 3)
Options for selecting and placing the foreign key
- Place a foreign key in both entities
- Place a foreign key in one of the entities
Time-variant data
data whose values change over time and for which a history of the data changes must be retained
Time-variant data requires
creating a new entity in a 1:M relationship with the original entity
Design trap
- Occurs when a relationship is improperly or incompletely identified
- Data represented in a way not consistent with the real world
Fan trap
- Occurs when one entity is in two 1:M relationships to other entities
- Produces an association among other entities not expressed in the model
Inheritance, in the EERD
the property that enables an entity subtype to inherit the attributes and relationships of the supertype
subtype descriminator
the attribute in the supertype that determines to which entity subtype each supertype occurrence is related
specialization
the grouping of unique attributes into a subtpye entity
generalization
the grouping of common attributes into a supertype entity
surrogate key
system-assigned primary key, generally numeric and auto-incremented