CS FundamentalsModerateGATE CS (PYQ pattern)

R(A, B, C, D, E) has the functional dependencies A → B, BC → D, D → E and E → A. The number of candidate keys of R and its highest normal form are:

  1. A. 4 keys; BCNF
  2. B. 2 keys; 2NF only
  3. C. 4 keys; 2NF only
  4. D. 4 keys; 3NF but not BCNF

Correct answer: D. 4 keys; 3NF but not BCNF

C must be in every key, and A, B, D, E all determine each other via C: AC, BC, CD and CE are the 4 keys. Every attribute is therefore prime, so R is in 3NF, but A → B has a non-superkey determinant, so R is not in BCNF.

More DBMS and SQL questions

Exams that ask this topic