A functional dependency is termed as a useful functional dependency if and only if it satisfies all the following three conditions:
For a relation with 4 attributes, the total number of possible useful functional dependencies is __________.
GATE CSE 2024Databases › Normalization & Functional DependenciesVerified
50
Count ordered pairs (X, Y) of attribute sets such that X and Y are non-empty, X ⊆ attributes(R), Y ⊆ attributes(R), and X ∩ Y = ∅. For a relation with n = 4 attributes, fix the size r = |X|, choose X in C(4, r) ways, then choose any non-empty subset of the remaining 4 - r attributes as Y.
The conditions define a 'completely non-trivial' functional dependency: non-empty left side, non-empty right side, and disjoint left and right attribute sets. Counting all such dependencies for a 4-attribute relation gives 50.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.