CS FundamentalsHardDeloitte · IBM campus pattern

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

  1. A. AB
  2. B. AB, AC, AD, AE
  3. C. ABCDE
  4. D. ABC

Correct answer: B. AB, AC, AD, AE

Computing each candidate attribute set's closure under AB → C, C → D, D → E, E → B, the minimal sets whose closure is all of {A,B,C,D,E} are: AB, AC, AD, AE. 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