GATE / CS ARCHIVE

GATE CSE 2014 SET 2 / QUESTION 21

GATE CSE 2014 Set 2 Q21

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

GATE 2014 Set 2, Q21 1 mark · NAT
Report issue

Functional Dependencies & Keys

Question 21, GATE 2014: For relation schema R(E,F,G,H), with E as the key, find the maximum number of superkeys.
Tap to enlarge
Answer & solution

Official answer: 8

Our answer: 8 if E is the sole candidate key

1. Set up the reasoning. A superkey uniquely identifies tuples and may contain redundant attributes. Starting from E, independently include or omit each of the three remaining attributes F, G, and H.

2. Derive the result. Every superset of E is a superkey; choosing any subset of F, G, H gives 2³=8. Reading E as the only candidate key gives exactly this count. If it merely says E is one candidate key, additional keys could increase the count, up to all 15 nonempty attribute subsets when every singleton is a key. Thus the official 8 relies on the sole-key reading of the key.

3. Check the interpretation. The intended count treats E as the sole candidate key: E, EF, EG, EH, EFG, EFH, EGH, EFGH. If the phrase only grants that E is one key, other candidate keys are not ruled out; preserve that ambiguity rather than claiming eight follows unconditionally.

Original paper, page 33 · Answer key