Bird
0
0

In a one-to-many relationship between two tables, which table usually contains the foreign key?

easy📝 Conceptual Q1 of 15
SQL - Table Relationships
In a one-to-many relationship between two tables, which table usually contains the foreign key?
AThe table on the 'one' side
BThe table on the 'many' side
CBoth tables contain the foreign key
DNeither table contains a foreign key
Step-by-Step Solution
Solution:
  1. Step 1: Understand one-to-many relationship

    In a one-to-many relationship, one record in the 'one' table relates to many records in the 'many' table.
  2. Step 2: Identify foreign key placement

    The foreign key is placed in the 'many' table to link back to the 'one' table.
  3. Final Answer:

    The table on the 'many' side -> Option B
  4. Quick Check:

    Foreign key location = many side [OK]
Quick Trick: Foreign key goes in the 'many' side table [OK]
Common Mistakes:
MISTAKES
  • Placing foreign key in the 'one' side table
  • Thinking both tables have foreign keys
  • Assuming no foreign key is needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes