Functional Dependency
A functional dependency says that if two rows agree on some columns, they must agree on certain others. It is the tool behind keys and normalization, so interviewers use it to check that you can reason about a schema without looking at any data. After this section you can read a dependency, tell a trivial one from a non-trivial one, use Armstrong's rules (the basic inference rules), compute the closure of a set of columns (all columns they determine) step by step, and use that closure to prove that a set of columns is a key.
Topics in this section
- What a functional dependency is
- Trivial and non-trivial dependencies
- A dependency is a rule, not a pattern in the data
- Keys written as dependencies
- Armstrong's axioms
- Attribute closure
- Canonical cover