Question
Consider the relation scheme and the set of functional dependencies
on . What is the key for ?
Official answer and solution
- Official answer
- B
- From
- Official GATE 2014 answer key
Solution
Identify the essential attributes that do not appear on the right-hand side of any functional dependency, then compute their attribute closure.
The relation scheme is .
The given functional dependencies are:
Check attributes that appear on the right-hand side (RHS) of any FD:
- RHS attributes: .
- Attributes never appearing on any RHS: .
Since cannot be determined by any other attributes, every candidate key of must contain .
Now compute the closure :
- Initial:
- Using :
- Using :
- Using :
- Using :
- Using :
Since and no proper subset of can be a key, is the unique minimal key for .
B
Selecting a non-minimal superkey such as .
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 1
- Question
- 31 of 65, printed as CS Q.21
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.