Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:
A common pattern in enhanced entity–relationship (EE-R) modeling is to represent inheritance using a supertype and one or more subtypes (specializations). Designers often include a “subtype discriminator” on the supertype. This question checks whether you understand what that discriminator attribute is and how it is used during design and implementation.
Given Data / Assumptions:
Concept / Approach:
The subtype discriminator (sometimes called a type attribute, category code, or specialization indicator) is an attribute that lives on the supertype entity. Its value determines which subtype(s) a given instance belongs to. For disjoint specializations, a single-value code (for example, 'E' or 'C') is sufficient. For overlapping specializations, implementations may use a multi-valued indicator, multiple Boolean flags (is_employee, is_supplier), or a link table to express membership in more than one subtype.
Step-by-Step Solution:
Verification / Alternative check:
Review a sample row in the supertype table. The discriminator value should deterministically imply which subtype table(s) contain the same primary key. In disjoint designs, each supertype key appears in exactly one subtype table. In overlapping designs, it may appear in several.
Why Other Options Are Wrong:
Common Pitfalls:
Using ambiguous codes without a controlled vocabulary, forgetting to enforce that subtype-specific attributes are populated only when the discriminator allows it, or hard-coding values in application logic instead of centralizing them in constraints or reference tables.
Final Answer:
Correct
Discussion & Comments