CS FundamentalsHardGATE CS (PYQ pattern)

A relation R(A, B, C) holds the tuples (1,x,10), (1,x,20), (1,y,10), (1,y,20), (2,x,10), (2,y,20). Which statement is correct?

  1. A. The MVD A →→ B holds, because A = 1 shows the full cross product of B and C values
  2. B. The MVD A →→ B holds because every A value has at least two B values
  3. C. The functional dependency A → B holds because the same A value always appears with the same B set
  4. D. The MVD A →→ B fails, because for A = 2 the tuple (2, x, 20) required by the swap rule is missing

Correct answer: D. The MVD A →→ B fails, because for A = 2 the tuple (2, x, 20) required by the swap rule is missing

For A = 2 the tuples (2,x,10) and (2,y,20) require (2,x,20) and (2,y,10) by the MVD swap rule; they are absent, so A →→ B fails even though A = 1 is a perfect cross product.

More DBMS and SQL questions

Exams that ask this topic