CS FundamentalsHardGATE CS · Product placement

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

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

Correct answer: A. 4

The candidate keys are {CE, ABE}, so the prime attributes (those in at least one candidate key) are ABCE, giving 4. Counting only one key's attributes undercounts.

More DBMS and SQL questions

Exams that ask this topic