Skip to main content

GATE CSE 2005Databases › ER Modeling & Relational Model FundamentalsVerified

GATE CSE 2005 PYQ: Consider a relation scheme R = ( A , B , C , D , E , H ) R = (A, B, C, D, E, H) R = ( A , B , C , D , E , H…

Consider a relation scheme R=(A,B,C,D,E,H)R = (A, B, C, D, E, H) on which the following functional dependencies hold: {A→BA \rightarrow B, BC→DBC \rightarrow D, E→CE \rightarrow C, D→AD \rightarrow A}. What are the candidate keys R?

  1. A
    AE, BE\text{AE, BE}
  2. B
    AE, BE, DE\text{AE, BE, DE}
  3. C
    AEH, BEH, BCH\text{AEH, BEH, BCH}
  4. D
    AEH, BEH, DEH\text{AEH, BEH, DEH}
    Correct answer

Answer

(D) AEH, BEH, DEH \text{AEH, BEH, DEH} AEH, BEH, DEH

Approach

A candidate key must determine every attribute of R and be minimal. First identify attributes that must appear in every candidate key: H never appears in any functional dependency, and E appears only on the left-hand side of E→C. Therefore every candidate key must contain E and H. Then find the smallest additional attributes needed to derive A, B, C, D using the given FDs.

The only attributes that must be in every candidate key are E and H. Adding A, B, or D to EH yields a minimal set whose closure contains all attributes: AEH, BEH, and DEH. Hence option D is correct.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.