Normalisation Basics in Three Takeaways
Normalisation is a word that sounds academic but describes a common-sense idea: store each fact once, in the right place. This one-page brief explains the idea with a tiny example and three takeaways.
The issue
When people first design a database, they often copy the layout of a spreadsheet: one big table with everything in it. That works until the data starts repeating. Then a change in one place has to be made in many places, and sooner or later one copy is missed.
Before, one table for orders:
| order_id | customer_name | customer_email | product |
|---|---|---|---|
| 1 | Ana | ana@example.com | Lamp |
| 2 | Ana | ana@example.com | Desk |
| 3 | Ben | ben@example.com | Lamp |
If Ana changes her email, you must update two rows. Miss one and the database disagrees with itself.
After, split into two tables linked by a key:
| customer_id | name | |
|---|---|---|
| 10 | Ana | ana@example.com |
| 11 | Ben | ben@example.com |
| order_id | customer_id | product |
|---|---|---|
| 1 | 10 | Lamp |
| 2 | 10 | Desk |
| 3 | 11 | Lamp |
Now Ana's email lives in exactly one row. Orders point to her with customer_id, a foreign key.
Why it matters
- Fewer mistakes when data changes.
- Less repeated data to store.
- Clearer structure: each table is about one kind of thing.
Three takeaways
- One fact, one place. If the same piece of information appears in many rows, ask whether it belongs in its own table.
- Link with keys, not copies. Use a primary key to identify each row and a foreign key to point to it from elsewhere.
- Do not overdo it. Splitting into dozens of tiny tables makes queries harder to write. For beginners, a few well-named tables that avoid obvious repetition is the goal. Database textbooks describe formal "normal forms"; you can learn those later.
A quick self-check for your own design
| Question | If yes |
|---|---|
| Do I type the same name or address in many rows? | Move it to its own table |
| Does a column hold a list, like "red, blue, green"? | Make a separate table with one row per item |
| Would deleting one row lose information I still need? | Split the information apart |
Further reading on this site
- Inside normalisation: why we split data into tables
- Untangling a messy spreadsheet, a step-by-step written walkthrough
- How to add a foreign key between two tables
When repetition is acceptable
Not every repeated value is a problem. A status column that says "open" on many rows is fine: "open" is a small, fixed label, not a fact about something that can change. A date that appears on many orders is also fine, because each order genuinely happened on that day. The question to ask is whether the repeated value describes another thing that has its own life, such as a customer, a product or a city. If it does, and that thing could change, give it its own table. If it is just a label or a measurement belonging to the row, leave it where it is. This small test catches most beginner design problems without needing any formal theory.
Normalisation is less a rule to memorise than a habit of noticing repetition. Once you start seeing it, your designs improve on their own.
A free learning page for beginners. Practise on a test database, never on real customer data, and check the official documentation for your database version.