What is data normalization and why is it important?

Instruction: Describe the concept of data normalization and its significance in database design.

Context: This question tests the candidate's knowledge on database optimization techniques and their importance in reducing redundancy and dependency.

Updated

Official answer

Normalization organizes relational data according to its dependencies to reduce avoidable duplication and update, insertion or deletion anomalies. It is not simply splitting every large table into smaller tables, and it does not automatically synchronize copied values.

Suppose an order table repeats a customer's current contact address on every order and customer_id determines that address. Updating one copy while missing another creates inconsistent current contact data. Store the current address with the customer and reference customer_id from orders.

An order's historical shipping address is a different fact: it may intentionally record where that order was shipped even after the customer moves. Removing that snapshot because it resembles the current address would change the business meaning. Identify the dependency and time semantics before normalizing.

Choose keys and constraints, and ensure decompositions can reconstruct the intended information without spurious rows or lost relationships. Normalization often improves maintainability and integrity, but extra joins can affect reads. Measure the workload and use deliberate derived/denormalized structures where justified, with an explicit refresh and reconciliation policy.

Related Questions