GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 50

Prime-attribute dependencies and normal form

Database Management Systems · Normalization & Decomposition · Full GATE CSE 2004 paper

GATE 2004, Q50 2 marks · MCQ
Report issue

Normalization & Decomposition

Question 50, GATE 2004: StudentPerformance(name,courseNo,rollNo,grade) has dependencies (name,courseNo)→grade; (rollNo,courseNo)→grade; name→rollNo; rollNo→name. What is its highest listed normal form?
Options:
(A) 2NF
(B) 3NF
(C) BCNF
(D) 4NF
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step through it (8 steps)

1. The candidate keys are{name,courseNo} and{rollNo,courseNo}. Thus name,rollNo,courseNo are prime attributes, and grade is non-prime.

2. Dependencies from either key to grade satisfy 3NF. The non-key determinants name and rollNo determine only another prime attribute, so these dependencies also satisfy 3NF.

3. But name→rollNo and rollNo→name violate BCNF because neither determinant determines courseNo. Highest listed normal form is 3NF.

4. Teaching check: Compute closures: {name,courseNo}+ and {rollNo,courseNo}+ both contain all attributes, but name+ contains only name,rollNo. In 3NF a non-superkey determinant may determine a prime attribute; BCNF forbids that exception. This is exactly why the two normal forms differ here.

Original paper, page 7