CS FundamentalsHardProduct-company interview pattern

R(A, B, C, D, E) has functional dependencies A → BC, CD → E and B → D. Which of the following is a candidate key?

  1. A. CD
  2. B. A
  3. C. BC
  4. D. B

Correct answer: B. A

A⁺: A → B, C; B → D; CD → E, so A⁺ = ABCDE and A (a single attribute) is a candidate key. CD⁺ = CDE, BC⁺ = BCDE and B⁺ = BD — none reaches A.

More DBMS and SQL questions

Exams that ask this topic