Consider the relation scheme and the set of functional dependencies on . What is the key for ?
View worked solution
Answer: B
To find the candidate key for the relation scheme , we can analyze the given set of functional dependencies (FDs):
Step 1: Identify Essential Attributes
An attribute that does not appear on the right-hand side (RHS) of any functional dependency must be part of every candidate key, as it cannot be determined by any other attribute.
Looking at the RHS of all given FDs, the attributes that are never determined by any dependency are:
Step 2: Compute the Closure of
Let's find the attribute closure of to see if it can determine all the attributes of the relation :
- Start with:
- Using :
- Using :
- Using :
- Using :
- Using :
Since the closure of contains all the attributes of , and no proper subset of can derive all attributes (as and are essential), is the unique candidate key for .
Free practice · Your answers on this page are not saved.
