View worked solution
Answer: 8
A superkey is a set of attributes that contains a candidate key.
For the given relation schema , the candidate key is . Therefore, any superkey of must contain the attribute .
The remaining attributes in the relation are , , and . Each of these 3 attributes can either be included or excluded from the superkey:
- Attribute : 2 choices (present or absent)
- Attribute : 2 choices (present or absent)
- Attribute : 2 choices (present or absent)
Thus, the total number of superkeys is given by:
The 8 superkeys are: , , , , , , , and .
Free practice · Your answers on this page are not saved.
