Normalization
Superkeys
A superkey is an attribute set whose closure reaches the whole relation.
Superkeys
A set of attributes is a superkey when its closure reaches every attribute of the relation. If the closure falls short, the set cannot identify the whole tuple under the given dependencies. This lesson shows both outcomes by compiling two closure traces. Note: the attribute names and final closures live in the diagrams.
Closure reaches the relation
The first compiled closure has size 3, matching the relation size 3. Note: matching sizes here are read from the compiled closure and schema.
FD closure, candidate keys, BCNF decomposition, and lossless-join checks are exact finite computations on tiny schemas; dependency inference beyond these traces and physical schema design tradeoffs are beyond this book - no product claims.
Closure falls short
The contrast closure has size 2 while the relation still has size 3. Note: because the closure does not reach the whole schema, this attribute set is not a superkey.
FD closure, candidate keys, BCNF decomposition, and lossless-join checks are exact finite computations on tiny schemas; dependency inference beyond these traces and physical schema design tradeoffs are beyond this book - no product claims.
Summary
A superkey test is just a closure test against the whole relation. Note: these are exact finite closure computations; physical indexing choices and broader schema design tradeoffs are beyond this book.