CS FundamentalsVery hardGATE CS

R(A, B, C, D, E) has functional dependencies BC → A, A → B, D → E and E → D. How many candidate keys does R have, and what is its highest normal form?

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

Correct answer: C. 4 keys; 3NF

C is in every key, plus one of A or B (A → B, BC → A) and one of D or E: ACD, ACE, BCD, BCE. Every attribute is prime, so R is in 3NF, but A → B and D → E have non-superkey left sides, so it is not in BCNF.

More DBMS and SQL questions

Exams that ask this topic