Given the table Employees(EmpID, Name, Dept, DeptPhone) with dependencies:…

2025

Given the table Employees(EmpID, Name, Dept, DeptPhone) with dependencies:
EmpID → Name, Dept
Dept → DeptPhone
How should this be decomposed to satisfy 3NF?

  1. A.

    Employees(EmpID, Name, DeptPhone) and Departments(Dept, DeptPhone)

  2. B.

    Merge all attributes into a single table

  3. C.

    Employees(EmpID, Name) and Departments(Dept, DeptPhone)

  4. D.

    Employees(EmpID, Name, Dept) and Departments(Dept, DeptPhone)

Attempted by 155 students.

Show answer & explanation

Correct answer: D

To satisfy Third Normal Form (3NF), the single table must be decomposed into Employees(EmpID, Name, Dept) and Departments(Dept, DeptPhone). The original table violates 3NF because it contains a transitive functional dependency (EmpID → Dept → DeptPhone) , where the non-prime attribute DeptPhone depends on EmpID via another non-prime attribute, Dept. Under 3NF rules, a non-prime attribute can only be determined by a super key; since Dept is not a super key, keeping all fields in one table creates redundancy and anomalies.

To resolve this violation, the transitive dependency is isolated by splitting the attributes into two target relations. The first table, Employees, retains the candidate key EmpID along with its direct attributes (Name and Dept). The second table, Departments, extracts the violating dependency so that Dept becomes its primary key to cleanly map DeptPhone. This specific decomposition ensures a lossless join and preserves all functional dependencies, allowing the original schema to be perfectly reconstructed using Dept as a foreign key connection.

Explore the full course: Niacl Ao It Specialist