Normalization
A fat orders sheet stores Ada's name and email on every order she places. Change her email on one row, her three rows disagree; delete the only T-Shirt order, the catalog forgets its price; one shape, three bugs.
- ▸Duplication is the bug: one fact stored in three rows, a partial update, and the table gives two answers.
- ▸Each form name is the move you just made: atomic cells, the whole key, nothing but the key.
- ▸Sometimes the move is to put the redundancy back, on purpose, with a written rule for keeping copies in sync.
An orders sheet sits in front of you: four rows, seven columns (order_id, customer_name, customer_email, product_name, unit_price, qty, ordered_at). Row 101 is Ada at ada@x.example buying two Coffee Mugs at $12 each. Rows 102 and 104 are also Ada. Row 103 is Brent.
Three operations make three different things go wrong on this same sheet.
Ada changes her email to ada@new.example. The update has to find every row carrying ada@x.example and replace it. Three rows. Miss one and the table now disagrees with itself about Ada's address. The same fact lives in three places, partial updates leave the table in conflict.
Row 102 is the only order anyone placed for the T-Shirt at $24. Delete it. The catalog still sells T-Shirts at $24, but the database forgets that, the price existed only on that order row. Information that wasn't really about the order at all disappeared with the order.
A new product, Notebook for $8, has just been added to inventory. No one has ordered it yet, and the sheet has no place to put it: every row demands an order id and a customer. Either Notebook waits for its first sale, or the row is stuffed with sentinel values, an order 0 from a blank customer, that pretend to be facts. The product can't be recorded without an unrelated fact arriving first.
Three operations, three failures, all from one structural choice: too many facts on one row. The names for these failures and the splits that undo them are the rest of this topic.