Given the relational schema and the set of functional dependencies:
Which of the following functional dependencies can be derived from the above set?
- (A)
- (B)
- (C)
- (D)
Given the relational schema and the set of functional dependencies:
Which of the following functional dependencies can be derived from the above set?
ANSWER
The derivable dependencies are , and , that is options (A), (B) and (D).
Official answer: A, B, DSource: Official answer key, GATE 2024 DA (IISc Bengaluru)
A dependency can be derived from a set exactly when , where is the closure of under . So compute the closures needed.
Closure of . Start with .
Apply : the left side is in the set, so add . The set becomes .
Apply and : and are both in the set, so add and . The set becomes .
appears on the right side of no dependency, so it can never be added. The other dependencies (, ) need on the left and add nothing new. Hence .
(A) : , so it can be derived.
(C) : , so it cannot be derived.
(D) : , so it can be derived.
(B) : and are given. By the union rule (if and then ), holds. Equivalently, .
The derivable dependencies are (A), (B) and (D).
KEY IDEA
is derivable exactly when . Compute the closure of the left side by repeatedly firing every dependency whose left side is already inside the set. Here is what lets reach and so pull in and .
WATCH OUT FOR
Stopping the closure of at and forgetting to fire and afterwards. Another slip is to think holds because determines and . The converse does not follow, since nothing determines .
From the GATE 2024 DA paper. Every question of this paper · Download the full paper · All 6 Normal forms questions, with notes