Bird
0
0

You have a table:

medium📝 Debug Q14 of 15
SQL - Database Design and Normalization
You have a table:

StudentID | StudentName | Advisor | AdvisorOffice

This table violates 3NF. What is the best way to fix it?
ARemove AdvisorOffice column.
BCreate a separate Advisor table with Advisor and AdvisorOffice.
CMake StudentName the primary key.
DAdd AdvisorOffice to StudentID as a foreign key.
Step-by-Step Solution
Solution:
  1. Step 1: Identify the 3NF violation

    AdvisorOffice depends on Advisor, a non-key column, causing a transitive dependency violating 3NF.
  2. Step 2: Fix by separating dependent data

    Creating a separate Advisor table with Advisor and AdvisorOffice removes the transitive dependency.
  3. Final Answer:

    Create a separate Advisor table with Advisor and AdvisorOffice. -> Option B
  4. Quick Check:

    Separate dependent data into own table to fix 3NF [OK]
Quick Trick: Fix 3NF by splitting tables for transitive dependencies [OK]
Common Mistakes:
  • Just removing columns without restructuring
  • Changing primary keys incorrectly
  • Adding foreign keys without normalization

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes