GATE / CS ARCHIVE

GATE CSE 2014 SET 1 / QUESTION 21

GATE CSE 2014 Set 1 Q21

Database Management Systems · Functional Dependencies & Keys · Full GATE CSE 2014 Set 1 paper

GATE 2014 Set 1, Q21 1 mark · MCQ
Report issue

Functional Dependencies & Keys

Question 21, GATE 2014: For R(E,F,G,H,I,J,K,L,M,N), the functional dependencies are EF→G, F→IJ, EH→KL, K→M, L→N. Which is a candidate key? A: EF. B: EFH. C: EFHKL. D: E.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (2 steps)

1. Method and setup. Attributes absent from every dependency’s right side cannot be generated from other attributes. Thus E, F and H must occur in every key. Compute their closure systematically, and distinguish a minimal candidate key from a larger superkey such as EFHKL.

2. Work through the result and its assumptions. E, F, H never occur on a right-hand side, so every key needs all three. Their closure addsG via EF, I, J via F, K, L via EH, then M, N. Thus EFH determines all attributes and is minimal, B.

Original paper, page 12 · Answer key