SQL & Relational Databases (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
Database Normalization: 1NF through BCNF and Intentional Denormalization.
senior LevelDatabases & SQL
In Simple Words: Normalization eliminates data redundancy and prevents update/delete anomalies:
- 1NF: Atomic values; no repeating groups or comma-separated lists in a single cell.
- 2NF: In 1NF and all non-key columns depend on the entire primary key (eliminates partial key dependency).
- 3NF: In 2NF and no transitive dependencies (non-key column depending on another non-key column).
- BCNF: Stricter 3NF where every determinant is a candidate key.
- Intentional Denormalization: In high-read analytical databases, tables are denormalized (storing pre-joined customer names with orders) to avoid expensive multi-table joins.