Skip to main content

GATE CSE 2021Databases › Normalization & Functional DependenciesVerified

GATE CSE 2021 PYQ: Suppose the following functional dependencies hold on a relation U U U with attributes P , Q , R , S P,Q,R,S…

Suppose the following functional dependencies hold on a relation UU with attributes P,Q,R,SP,Q,R,S, and TT:

  • P→QRP \rightarrow QR
  • RS→TRS \rightarrow T

Which of the following functional dependencies can be inferred from the above functional dependencies?

  1. A
    PS→TPS \rightarrow T
    Correct answer
  2. B
    R→TR \rightarrow T
  3. C
    P→RP \rightarrow R
    Correct answer
  4. D
    PS→QPS \rightarrow Q
    Correct answer

Answer

(A, C, D) P S → T PS \rightarrow T PS → T; P → R P \rightarrow R P → R; P S → Q PS \rightarrow Q PS → Q

Approach

Use attribute closure on the left-hand sides of the candidate dependencies. If the closure contains the right-hand side, the FD can be inferred.

Only options A, C, and D have right-hand sides contained in the closure of their left-hand sides. Option B fails because \(R\) alone does not determine \(T\).

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.