0
0
SQLquery~5 mins

Third Normal Form (3NF) in SQL - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main goal of Third Normal Form (3NF) in database design?
The main goal of 3NF is to remove transitive dependencies, ensuring that non-key columns depend only on the primary key, which helps avoid data duplication and update anomalies.
Click to reveal answer
intermediate
Define transitive dependency in the context of 3NF.
A transitive dependency occurs when a non-key column depends on another non-key column, which in turn depends on the primary key. 3NF removes these to keep data consistent.
Click to reveal answer
beginner
Which of the following must a table satisfy to be in Third Normal Form (3NF)?<br>1. Be in Second Normal Form (2NF)<br>2. No transitive dependencies
A table must be in 2NF and have no transitive dependencies to be in 3NF. This means every non-key attribute depends only on the primary key.
Click to reveal answer
intermediate
Given a table with columns: StudentID (PK), StudentName, AdvisorID, AdvisorName. Why is this table not in 3NF?
Because AdvisorName depends on AdvisorID, which is not the primary key. This is a transitive dependency. To reach 3NF, Advisor info should be in a separate table.
Click to reveal answer
beginner
How does 3NF improve database maintenance?
3NF reduces data duplication and inconsistencies by ensuring each fact is stored only once. This makes updates easier and prevents errors.
Click to reveal answer
Which condition must be true for a table to be in Third Normal Form (3NF)?
AIt has no transitive dependencies
BIt has no partial dependencies
CIt has duplicate rows
DIt contains only one column
What is a transitive dependency?
AA non-key column depends on another non-key column
BA primary key depends on a foreign key
CA column depends on itself
DA table has duplicate rows
If a table is in 2NF but has transitive dependencies, what is its normalization status?
AIt is in Boyce-Codd Normal Form
BIt is in 3NF
CIt is in 1NF
DIt is not in 3NF
Which action helps achieve 3NF?
ACombining unrelated data into one table
BAdding redundant columns
CSplitting tables to remove transitive dependencies
DIgnoring primary keys
Why is 3NF important in databases?
ATo increase the number of tables
BTo reduce data duplication and improve data integrity
CTo make queries slower
DTo store data in one big table
Explain Third Normal Form (3NF) and why it is important in database design.
Think about how 3NF helps keep data clean and easy to update.
You got /4 concepts.
    Describe a real-life example where a table violates 3NF and how you would fix it.
    Consider a table with people and their managers' names stored together.
    You got /3 concepts.