Difficulty: Medium
Correct Answer: When at least one side is many and the relationship carries its own attributes that must be stored
Explanation:
Introduction / Context:An associative entity (also called a bridge or junction entity) is used to implement many-to-many associations and to capture attributes of the association itself, such as quantity, effective dates, or roles. Choosing when to elevate a relationship into an entity affects normalization, integrity, and query performance.
Given Data / Assumptions:
Concept / Approach:
When a relationship has attributes that do not belong to either participating entity or the association is many-to-many, it should be represented as an associative entity. In the relational model, this becomes a separate table with foreign keys to each parent and columns for the relationship attributes, enforcing integrity and enabling queries over the association's data.
Step-by-Step Solution:
Identify that the association is many-to-many or at least one side is many.List attributes that describe the association itself (for example, quantity on an order line).Create an associative entity/table with foreign keys to the parents.Add the association attributes as columns; define keys and constraints.Verification / Alternative check:
Textbook examples include Order–Product becoming OrderLine with quantity and price, and Student–Course becoming Enrollment with term and grade. These are canonical cases for associative entities.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
When at least one side is many and the relationship carries its own attributes that must be stored
Discussion & Comments