GATE / CS ARCHIVE

GATE CSE 1999 / QUESTION 1.24

Candidate key from a dependency chain

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

GATE 1999, Q1.24 1 mark · MCQ
Report issue

Functional Dependencies & Keys

Question 1.24, GATE 1999: R(A,B,C,D,E,F) has C→F,E→A,EC→D,A→B. Choose a key from CD,EC,AE,AC.
Tap to enlarge
Your answer
Answer & solution

Answer: B: EC (no official key was published)

Step through it (2 steps)

Start the closure of EC with E,C. E→A adds A; A→B adds B; C→F adds F; and EC→D adds D. Thus (EC)+ contains every attribute, so EC is a superkey. Neither E nor C occurs on a right-hand side, so neither can be obtained from other attributes; every key must contain both. Therefore EC is also minimal, a candidate key, and B is correct. Each other listed pair is missing E or C.

Original paper, page 3