CS FundamentalsHardGATE CS · DBMS

R(A, B, C, D, E) has functional dependencies DE → B, AC → E, AD → E, BD → CE, C → A. How many prime attributes does R have?

  1. A. 4
  2. B. 5
  3. C. 2
  4. D. 1

Correct answer: B. 5

The candidate keys are {AD, BD, CD, DE}, so the prime attributes (those in at least one candidate key) are ABCDE, giving 5. Counting only one key's attributes undercounts.

More DBMS and SQL questions

Exams that ask this topic