Datanormalizationnormal form3NFupdate anomaly

Normalisation

Definition

Normalisation is organising a relational schema into tables that each describe one kind of entity, so that no fact is duplicated, usually up to third normal form (3NF).

In practice

Storing each fact once prevents update anomalies: change a customer's address in one row and every order sees it, with no copies to drift apart. Foreign keys and constraints then keep the relationships valid. Joins on indexed keys reassemble the data cheaply, which is why normalised schemas are the default for transactional systems.

Taken too far, it turns common reads into many-way joins. Read-heavy or partitioned systems often denormalise selected fields on purpose, accepting extra write work and the risk of copies going stale. Historical facts, such as the price paid on an order, should be copied anyway, because they must not change later.

Example

Instead of repeating the customer's name and address on 40 order rows, orders stores customer_id, and a change to the customers row shows up on every order.