DBMS Tutorial · Revision notes
Functional Dependencies & Normalization
Normalization is the step-by-step process of splitting a badly designed table into smaller good tables, so data is not repeated and updates do not cause errors. Functional dependencies (FDs) are the rules that guide this process.
Quick revision
- X → Y: same X means same Y
- X+ closure; X is a super key when X+ has all attributes
- Attributes never on the right side are in every key
- 1NF: atomic cells. 2NF: no partial dependency
- 3NF: X is a super key OR A is prime. BCNF: X is a super key
- All attributes prime → at least 3NF
- Lossless: R1 ∩ R2 is a key of R1 or R2
- BCNF always lossless, not always dependency preserving