0
0
DBMS Theoryknowledge~20 mins

Third Normal Form (3NF) in DBMS Theory - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
3NF Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the Definition of Third Normal Form (3NF)

Which of the following best describes the condition for a database table to be in Third Normal Form (3NF)?

AThe table is free of any functional dependencies.
BEvery attribute is dependent on the primary key, but transitive dependencies are allowed.
CEvery non-key attribute is fully functionally dependent on the primary key, and there are no transitive dependencies.
DThe table has no repeating groups or arrays, but transitive dependencies may exist.
Attempts:
2 left
💡 Hint

Think about what transitive dependency means and how 3NF handles it.

📋 Factual
intermediate
2:00remaining
Identifying Transitive Dependency

In a table with columns StudentID, StudentName, and DepartmentName, where DepartmentName depends on StudentID through StudentName, what kind of dependency is this?

ATransitive dependency
BFull functional dependency
CPartial dependency
DNo dependency
Attempts:
2 left
💡 Hint

Consider if a non-key attribute depends on another non-key attribute.

🚀 Application
advanced
2:00remaining
Applying 3NF to a Table

Given a table with columns OrderID, CustomerID, CustomerAddress, and OrderDate, which of the following changes will bring the table into Third Normal Form (3NF)?

AAdd <strong>CustomerName</strong> to the table to remove transitive dependencies.
BCombine <strong>CustomerID</strong> and <strong>CustomerAddress</strong> into a single column.
CRemove <strong>OrderDate</strong> from the table to avoid partial dependencies.
DSplit the table into two: one with <strong>OrderID</strong>, <strong>CustomerID</strong>, <strong>OrderDate</strong> and another with <strong>CustomerID</strong>, <strong>CustomerAddress</strong>.
Attempts:
2 left
💡 Hint

Think about how to remove transitive dependencies by separating related data.

🔍 Analysis
advanced
2:00remaining
Analyzing a Table for 3NF Violations

Consider a table with columns: EmployeeID, EmployeeName, DepartmentID, and DepartmentLocation. Which statement is true regarding its normalization status?

AThe table is in 1NF but not in 2NF.
BThe table violates 3NF because <strong>DepartmentLocation</strong> depends on <strong>DepartmentID</strong>, not directly on <strong>EmployeeID</strong>.
CThe table violates 2NF due to partial dependency.
DThe table is in 3NF because all columns depend on <strong>EmployeeID</strong>.
Attempts:
2 left
💡 Hint

Check if any non-key attribute depends on another non-key attribute.

Reasoning
expert
2:00remaining
Determining the Number of Tables After 3NF Decomposition

A table has columns: BookID, Title, AuthorID, AuthorName, and PublisherName. AuthorName depends on AuthorID, and PublisherName depends on BookID. After decomposing this table into Third Normal Form (3NF), how many tables will result?

A2
B3
C1
D4
Attempts:
2 left
💡 Hint

Consider separating tables to remove transitive dependencies for AuthorName.