Difficulty: Easy
Correct Answer: the child table.
Explanation:
Introduction / Context:
One-to-many (1:N) relationships are core to relational modeling. The “many” side must reference the “one” side so that multiple children can point to the same parent while maintaining referential integrity.
Given Data / Assumptions:
Concept / Approach:
The foreign key belongs in the child table (the N-side). It points to the parent’s primary key. This allows many child rows to reference one parent and enables DBMS enforcement of insert/update/delete rules (for example, ON DELETE RESTRICT or CASCADE).
Step-by-Step Solution:
Verification / Alternative check:
Attempt to insert a child with a nonexistent parent; the FK constraint should block it, confirming correct placement.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting to add an index on the FK can slow deletions on the parent and joins. Consider ON DELETE behaviors based on business rules.
Final Answer:
the child table.
Discussion & Comments