Recall & Review
beginner
What is a candidate key in a database?
A candidate key is a minimal set of attributes that can uniquely identify a tuple (row) in a relation (table). It means no attribute can be removed without losing the uniqueness property.
Click to reveal answer
beginner
What does the closure of a set of attributes represent?
The closure of a set of attributes is the set of all attributes that can be functionally determined from it using the given functional dependencies.
Click to reveal answer
intermediate
How is closure used to find candidate keys?
To find candidate keys, we compute the closure of attribute sets. If the closure contains all attributes of the relation, that set is a superkey. Minimal superkeys are candidate keys.
Click to reveal answer
beginner
What is the difference between a superkey and a candidate key?
A superkey is any set of attributes that uniquely identifies tuples. A candidate key is a minimal superkey, meaning it has no unnecessary attributes.
Click to reveal answer
beginner
Why do we look for minimal attribute sets when finding candidate keys?
Minimal attribute sets avoid redundancy and ensure the key is as simple as possible while still uniquely identifying tuples.
Click to reveal answer
What does the closure of an attribute set tell us?
✗ Incorrect
Closure shows all attributes that can be derived from the given attribute set using functional dependencies.
If the closure of an attribute set includes all attributes of the relation, what is it called?
✗ Incorrect
A superkey is any attribute set whose closure contains all attributes of the relation.
What makes a candidate key different from a superkey?
✗ Incorrect
Candidate keys are minimal superkeys with no extra attributes.
Which of these is NOT true about candidate keys?
✗ Incorrect
Candidate keys must be minimal and cannot have redundant attributes.
Why do we use closure to find candidate keys?
✗ Incorrect
Closure helps identify if an attribute set can determine all attributes, indicating a superkey or candidate key.
Explain how to use closure to find candidate keys in a relation.
Think about how closure helps find superkeys and then minimal superkeys.
You got /4 concepts.
What is the difference between a superkey and a candidate key? Why is minimality important?
Focus on uniqueness and minimal attribute sets.
You got /4 concepts.