Normalization
Normalization is splitting a table so that each fact is stored once. Interviewers ask about it because it shows whether you understand why a bad design causes insert, update and delete problems, and whether you can name the rule a table breaks. After this section you can spot the anomalies (these problems) in a table, state 1NF, 2NF, 3NF and BCNF (the levels of good design) with the dependency each one forbids, split a table without losing information, and explain why BCNF and dependency preservation sometimes conflict.
Topics in this section
- Why normalize: the three anomalies
- First normal form (1NF)
- Second normal form (2NF)
- Third normal form (3NF)
- Boyce-Codd normal form (BCNF)
- A split must be lossless
- Dependency preservation and the BCNF trade-off