Question
Which of the following is NOT a superkey in a relational schema with attributes and primary key ?
Official answer and solution
- Official answer
- B
- From
- Official GATE 2016 answer key
Solution
Check whether each attribute set contains the primary key VY as a subset.
Definition: In a relational schema, a superkey is any set of attributes that contains a candidate key (or the primary key) as a subset.
The primary key of the schema is given as . Therefore, any attribute set is a superkey if and only if:
Check each candidate set:
- (A) : contains and (is a superkey)
- (B) : contains but lacks (NOT a superkey)
- (C) : contains and (is a superkey)
- (D) : contains and (is a superkey)
Therefore, is NOT a superkey.
B
Overlooking the missing attribute in due to the visual similarity of attribute letters.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2016 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.