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