GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 78

Candidate keys with two mandatory attributes

Database Management Systems · Functional Dependencies & Keys · Full GATE CSE 2005 paper

GATE 2005, Q78 2 marks · MCQ
Report issue

Functional Dependencies & Keys

Question 78, GATE 2005: R(A, B, C, D, E, H), FDs A→B, BC→D, E→C, D→A. Candidate-key sets: A AE, BE; B AE, BE, DE; C AEH, BEH, BCH; D AEH, BEH, DEH. Option C uses the clearer GateForum BEH; GFG appears to print BEE in that position.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step through it (6 steps)

Neither E nor H appears on any dependency right-hand side, so every key contains both. E supplies C. Adding A yields B then D through BC→D; adding B yields D then A; adding D yields A then B. Thus AEH, BEH, DEH each determine all six attributes. EH alone cannot determine A, B, D, and adding only C gives nothing new, so these are precisely the minimal keys, option D.

Attributes absent from all FD right sides cannot be manufactured by closure, so every key includes E, H. With them C becomes available. Add A: obtain B, then D. Add B: combine with C to obtain D, then A. Add D: obtain A then B. Thus all three listed triples are superkeys. Removing their third attribute leaves EH with only E, H, C, proving minimality; adding C instead cannot unlock A, B, D. This also proves there are no omitted minimal keys.

Original paper, page 10