Let be a relation scheme with the following dependencies . Which one of the following is a key for ?
View worked solution
Answer: B
To determine which option is a candidate key for the relation scheme , we compute the attribute closure for each of the given options using the set of functional dependencies:
Let's find the closure for each option:
- Option A:
(using )
Since this does not contain all attributes of , is not a key. - Option B:
(using )
(using )
(using )
(using )
Since , is a superkey.
Furthermore, neither nor contains all attributes, meaning is a minimal superkey (candidate key). - Option C:
(using and )
This does not contain all attributes of , so is not a key. - Option D:
(using and )
This does not contain all attributes of , so is not a key.
Thus, EC is a key for the relation .
Free practice · Your answers on this page are not saved.
