GATE / CS ARCHIVE

GATE CSE 2003 / QUESTION 85

Normal form from only the listed dependencies

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

GATE 2003, Q85 2 marks · MCQ
Report issue

Normalization & Decomposition

Question 85, GATE 2003: The database functional dependencies are Date_of_birth→Age; Age→Eligibility; Name→Roll_number; Roll_number→Name; Course_number→Course_name; Course_number→Instructor; (Roll_number,Course_number)→Grade. Classify relation R(Roll_number,Name,Date_of_birth,Age):
A. In 2NF but not 3NF
B. In 3NF but not BCNF
C. In BCNF
D. None of the above
Use only the listed dependencies unless an additional identifying dependency is explicitly assumed.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Project the dependencies onto R. The relevant nontrivial ones are Roll_number→Name, Name→Roll_number and Date_of_birth→Age. No listed rule determines Date_of_birth from Roll_number or Name.
2. The closure of {Roll_number,Date_of_birth} contains all four attributes, and removing either attribute loses information. Likewise {Name,Date_of_birth} is a candidate key. Roll_number and Name alone are not keys under the stated dependency set.
3. Age is nonprime and depends on Date_of_birth, a proper subset of each composite candidate key. This is a partial dependency violating 2NF. Therefore none of A–C holds; D is the literal answer.
4. If one additionally assumes Roll_number→Date_of_birth, a single-attribute identifying key results and the usual 2NF-but-not-3NF answer A follows. The source does not supply that extra dependency, so it is a separate conditional interpretation.

Solution: Restrict the listed dependencies to R(Roll_number,Name,Date_of_birth,Age). They give Roll_number→Name, Name→Roll_number, and Date_of_birth→Age. Neither Name nor Roll_number determines Date_of_birth under this stated set. The candidate keys are therefore {Roll_number,Date_of_birth} and {Name,Date_of_birth}; Age is nonprime and depends on the proper key subset Date_of_birth. This violates 2NF, so the literal listed-dependency answer is D, none of the first three choices. If one additionally assumes Roll_number→Date_of_birth because roll numbers identify complete student records, Name and Roll_number become single-attribute keys and the relation is 2NF but not 3NF owing to Date_of_birth→Age, yielding A. That extra dependency is not supplied and must be labelled as an assumption.

Original paper, page 12