Difficulty: Medium
Correct Answer: All of the above use ID dependent entities
Explanation:
Introduction / Context:ID-dependent (identifying) entities are entities whose primary key includes the primary key of a parent entity. This modeling pattern expresses strong ownership and ensures a child cannot exist without its parent. It is useful in several recurring scenarios in logical design.
Given Data / Assumptions:
Concept / Approach:Association (intersection) entities in many-to-many relationships often use a composite PK built from the parent PKs, making them ID-dependent on both parents. Multivalued attributes become separate child entities keyed by the parent's key plus a discriminator, thus ID-dependent. Archetype/instance patterns may use an identifying relationship to tie instances to their archetype via a composite identifier.
Step-by-Step Solution:
Identify ownership: the child makes no sense without the parent (for example, OrderLine depends on Order).Model the child’s PK to include the parent’s PK, forming an identifying (solid-diamond) relationship.For M:N associations, create an associative entity whose PK includes both parents’ PKs.Verification / Alternative check:Attempt to define the child without the parent key; if uniqueness breaks or orphan rows become possible, ID-dependence is indicated.
Why Other Options Are Wrong:
Common Pitfalls:Overusing surrogate keys and losing the identifying tie. Even with a surrogate, keep a UNIQUE constraint on the natural identifying columns to preserve semantics.
Final Answer:All of the above use ID dependent entities
Discussion & Comments