CS FundamentalsHardGATE CS · PSU (ISRO/BARC)

R(A, B, C, D, E, F) has functional dependencies D → BF, AE → B, F → CD, DE → C. How many prime attributes does R have?

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

Correct answer: A. 4

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

More DBMS and SQL questions

Exams that ask this topic