What is normalization?
Instruction: Explain the concept of normalization in database design.
Updated
Official answer
Normalization organizes relations around keys and dependencies to reduce update, insertion and deletion anomalies. It is a logical design discipline, not a guarantee that every query becomes faster.
Suppose order_id determines customer_id and customer_id determines the customer's current name. Repeating that name on every order can leave inconsistent copies when the name changes. A suitable decomposition is customers(customer_id, current_name) and orders(order_id, customer_id), connected by a foreign key. Join them when current customer details are needed.
Identify candidate keys and functional dependencies, then check that decomposition is lossless and preserves the constraints that must be enforced. Do not split tables merely because they are large.
Historical facts need different semantics: an order's legally recorded name or delivery address may intentionally be a snapshot rather than the current customer value. Denormalized read models can also be justified, but need an explicit update and reconciliation policy. Normalization reduces certain redundancy; it does not prove source facts are accurate or remove all performance tradeoffs.