CS FundamentalsVery hardGATE CS (PYQ pattern)

R(A, B, C, D, E) has the functional dependencies DB → A, A → C, D → C, C → B. R is decomposed and one fragment is R1(A, C, D). Counting dependencies of the form X → a with X a non-empty proper subset of {A, C, D} and a a single attribute of {A, C, D} not in X, how many hold on R1 (that is, are implied by the original FDs)?

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

Correct answer: D. 5

Compute closures of A, C, D, AC, AD and CD in the full FD set (intermediate attributes such as B or E may be used) and count the attributes of R1 outside X in each closure: total 5. Using only the FDs written entirely inside R1 would undercount.

More DBMS and SQL questions

Exams that ask this topic