CS FundamentalsVery hardProduct company interview · GATE level

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

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

Correct answer: C. 3 candidate keys; 1NF

E appears on no right-hand side, so every key contains E, and E alone gives only {E, F}. CE: C gives A and D, D gives B, E gives F - a key. ABE: AB gives C, then D, and E gives F - a key. ADE: D gives B, then AB gives C - a key. No other minimal set works (BE, DE and AE do not reach C), so there are 3 keys: CE, ABE, ADE. F is the only non-prime attribute and E → F makes it depend on a proper part of every key, a partial dependency. So R is not in 2NF and its highest normal form is 1NF.

More DBMS and SQL questions

Exams that ask this topic