logo

Question detail

An Employee relation has EmployeeID as its primary key and contains DepartmentID and DepartmentName. DepartmentName is determined by DepartmentID. Which decomposition removes the transitive dependency?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Database design and normalisation techniques

Exam-style question

Try this first

An Employee relation has EmployeeID as its primary key and contains DepartmentID and DepartmentName. DepartmentName is determined by DepartmentID. Which decomposition removes the transitive dependency?.

  1. A.Employee(EmployeeID, DepartmentID) and Department(DepartmentID, DepartmentName)
  2. B.Employee(EmployeeID, DepartmentName) and Department(DepartmentID)
  3. C.Employee(EmployeeID, DepartmentID, DepartmentName) and Department(DepartmentName)
  4. D.Employee(EmployeeID) and Department(DepartmentID, DepartmentName, EmployeeID)

Model answer

What a good answer should say

  • Employee(EmployeeID, DepartmentID) and Department(DepartmentID, DepartmentName)

Explanation

Why this works

DepartmentName depends on DepartmentID, not directly on EmployeeID. Placing department details in a separate relation means each non-key attribute depends on the key of its own relation, removing the transitive dependency.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.