CS FundamentalsHardTCS NQT · Infosys pattern

R(A, B, C, D, E) has functional dependencies A → B, B → C, C → D, D → E. What are the candidate key(s) of R?

  1. A. ABCDE
  2. B. AB
  3. C. ABCD
  4. D. A

Correct answer: D. A

Computing each candidate attribute set's closure under A → B, B → C, C → D, D → E, the minimal sets whose closure is all of {A,B,C,D,E} are: A. Any proper subset of these fails to close to every attribute, and any superset is a non-minimal superkey.

More DBMS and SQL questions

Exams that ask this topic