GATE / CS ARCHIVE

GATE CSE 2018 / QUESTION 42

3NF but not BCNF

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

GATE 2018, Q42 2 marks · MCQ
Report issue

Normalization & Decomposition

Question 42, GATE 2018: Schemas: I R(rollno,courses), courses set-valued, rollno→courses; II R(rollno,courseid,email), rollno,courseid→email and email→rollno; III R(rollno,courseid,marks,grade), rollno,courseid→marks,grade and marks→grade; IV R(rollno,courseid,credit), rollno,courseid→credit and courseid→credit. Which is 3NF but not BCNF? A I; B II; C III; D IV.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (4 parts)

Method

BCNF requires every nontrivial dependency’s determinant to be a superkey. 3NF allows a second possibility: its right-hand attribute is prime, meaning it belongs to some candidate key. For II, email together with courseid determines rollno and all attributes, while rollno together with courseid determines email. Neither email nor rollno alone determines courseid. Thus email→rollno violates BCNF but is permitted by 3NF because rollno is prime.

Solution

In schema II, candidate keys are {rollno, courseid} and {email, courseid}. All three attributes are prime, so each listed dependency satisfies 3NF. But email→rollno has a determinant that is not a superkey, violating BCNF. Schema I has a set-valued non-atomic attribute under the intended 1NF definition. Schema III has marks→grade with a non-superkey determinant and non-prime right side; schema IV has the analogous courseid→credit violation. Hence only schema II, B. The listed nontrivial dependencies are understood as a generating set, rather than literally excluding dependencies implied by them.

Original paper, page 18 · Answer key