GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 2.25

What a relation instance proves about dependencies

Database Management Systems · Functional Dependencies & Keys · Full GATE CSE 2002 paper

GATE 2002, Q2.25 2 marks · MCQ
Report issue

Functional Dependencies & Keys

Question 2.25, GATE 2002: An instance of R(A,B,C) lists rows (1,1,1), (1,1,0), (2,3,2), (2,3,2), including the repeated displayed row. What can be concluded?
(A) A functionally determines B, and B functionally determines C.
(B) A functionally determines B, and B does not functionally determine C.
(C) B does not functionally determine C.
(D) A does not functionally determine B, and B does not functionally determine C.
Question 2.25, GATE 2002: An instance of R(A,B,C) lists rows (1,1,1), (1,1,0), (2,3,2), (2,3,2), including the repeated displayed row. What can be concluded?
(A) A functionally determines B, and B functionally determines C.
(B) A functionally determines B, and B does not functionally determine C.
(C) B does not functionally determine C.
(D) A does not functionally determine B, and B does not functionally determine C.
Tap to enlarge
Your answer
Answer & solution

Answer: C for schema-level inference (no official key was published)

Step 1: Use a counterexample to distinguish failure from confirmation.

Step 2: The two rows(1,1,1) and(1,1,0) agree on B but disagree on C, immediately witnessing failure of B→C. No displayed pair violates A→B, but an additional legal row(1,2,0) would violate it unless a schema constraint forbids that row. Observing the current sample cannot establish that prohibition. This is why schema inference selects C while instance-only testing supports the stronger conjunction B.

Conclusion: The rows with B=1 have different C values 1 and 0, disproving B→C for any schema constraint meant to hold on all legal instances containing this one. The displayed rows do satisfy A→B, but a single positive example cannot establish that dependency for all legal instances. Therefore the guaranteed schema conclusion is C. If the question instead asks only which dependencies hold on this particular instance, B’s conjunction is true too. The duplicate(2,3,2) row does not affect either observation.

Original paper, page 6