CS FundamentalsVery hardProduct-company MCQ pattern

R(A, B, C, D) has FDs AB → CD, C → A, D → B. How many candidate keys does R have, and what is its highest normal form?

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

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

Keys: AB, AD (D → B), BC (C → A) and CD. Every attribute is prime, so 3NF holds automatically. C → A and D → B have determinants that are not superkeys, so BCNF fails.

More DBMS and SQL questions

Exams that ask this topic