Difficulty: Easy
Correct Answer: Store all fields in three relations (two entity tables plus an associative/bridge table).
Explanation:
Introduction / Context:
Many-to-many (M:N) relationships cannot be represented directly in a single relational table without redundancy and anomalies. The normalized solution is to introduce an associative (bridge) table that contains foreign keys to each entity. This question verifies that baseline modeling knowledge.
Given Data / Assumptions:
Concept / Approach:
The canonical structure is three relations: A, B, and A_B (the bridge) with a composite key (A_id, B_id) or a surrogate, plus foreign keys to enforce referential integrity. Additional attributes of the association reside in the bridge table to avoid duplication across A or B.
Step-by-Step Solution:
Verification / Alternative check:
All relational design references adopt the three-table structure for M:N. Denormalization that collapses tables is an optimization, not the starting point.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Store all fields in three relations (two entity tables plus an associative/bridge table).
Discussion & Comments