Skip to content
Mad4Study

Engineering & Science

GATE Computer Science

  • GATE CS
  • 2026–27 pattern practice
  • Databases
  • Functional dependencies
  • Easy

For R(A,B,C,D)R(A, B, C, D) with F={A→B, B→C, C→D}F = \{A \to B,\ B \to C,\ C \to D\}, which is a candidate key?

Normalization

Pick an option to check your answer.

Compute closures:

A+={A}→A→B{A,B}→B→C{A,B,C}→C→D{A,B,C,D}A^+ = \{A\} \xrightarrow{A \to B} \{A, B\} \xrightarrow{B \to C} \{A, B, C\} \xrightarrow{C \to D} \{A, B, C, D\}

A+A^+ contains every attribute, and AA is a single attribute (so it is minimal) — a candidate key. No dependency determines AA, so every key must contain AA.

Why not the others

  • BB: B+={B,C,D}B^+ = \{B, C, D\} misses AA.
  • ABAB is a superkey, but not minimal, since AA alone suffices.
  • CDCD: (CD)+={C,D}(CD)^+ = \{C, D\}.

Report an error

GATE CS · Databases · Normalization