Consider a relation scheme on which the following functional dependencies hold: {, , , }. What are the candidate keys R?
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…
- A
- B
- C
- DCorrect 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.