Chapter 9 · Lesson 1 of 9
Why Normalization Matters
Understand what database normalization is, why each fact should be stored in one place, and how it prevents inconsistent data.
Normalization is the process of splitting data into related tables so each fact is stored in the right place only once. We do this to reduce duplication and keep data consistent.
Imagine a single table that stores orders like this:
order_id | customer_name | customer_email | customer_city | product_name | product_price -------- | ------------- | ---------------- | ------------- | ------------ | ------------- 1001 | Alice Kim | [email protected] | Berlin | Keyboard | 89.00 1002 | Alice Kim | [email protected] | Berlin | Mouse | 25.00 1003 | Ben Fox | [email protected] | Hamburg | Keyboard | 89.00
Alice's email and city are repeated on every order row. The Keyboard price is also repeated. That repetition causes problems:
• Update anomaly: if Alice moves, you must update many rows • Insert anomaly: you may not be able to add a new product until somebody orders it • Delete anomaly: deleting the last order for a product can accidentally remove the product information itself
Normalization solves this by separating customers, products, orders, and order_items into their own tables. Each table has a clear purpose, and relationships are connected with keys.
This lesson is theory-focused. Read it, then mark it complete in the Learn SQL panel before moving on.
Open this lesson in the SQL editorLessons in Normalization
See why well-designed databases split data into related tables, feel update, insert, and delete anomalies, and learn 1NF, 2NF, and 3NF.