Consider a relation R(A, B, C, D, E) with the following three functional dependencies. AB → C; BC → D; C → E; The number of superkeys in the relation R is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2022 · Q31
Time
Your answerNumerical answer
Solution
Official answer: 8
Integrity Constraints and Normal FormsGiven the relation schema and functional dependencies:
Attributes and do not appear on the right-hand side of any functional dependency, so every candidate key must contain both and .
Let us find the attribute closure of :
Using
Using
Using
Since contains all attributes of , is a candidate key. Since both and are essential, is the only candidate key.
A superkey is any superset of a candidate key. Any subset of attributes containing is a superkey:
The remaining attributes are (a set of attributes).
The number of superkeys is .
Therefore, the number of superkeys is 8.
Try the question first, then check your work.
Examiner trap
Find the attribute closure of attributes that do not appear on the right side of any dependency.
This Integrity Constraints and Normal Forms previous year question is Q31 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Integrity Constraints and Normal Forms in Databases, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Integrity Constraints and Normal Forms PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Integrity Constraints and Normal Forms has 30 GATE CSE PYQs across 20 papers from 2011 to 2026. 4 of them are 1-mark NAT questions like this one, and GATE CSE 2022 has 2.
How GATE tests Integrity Constraints and Normal FormsIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.