An update anomaly occurs when the same fact is duplicated across related tables and a change reaches one copy but not another. The database then contains inconsistent data. section 2.3 section 3.3
Product and review tables
Suppose product and review tables share product_id and manufacturer. Changing a product’s manufacturer requires updating both tables. Updating only product leaves new manufacturer data in one table and old data in the other. section 2.3
Prevent the anomaly with these practical design rules:
- Keep related tables from sharing columns beyond their primary and foreign keys. section 2.3
- Normalize the design by separating each entity or concept into an appropriate table. section 6.2
- Remove transitive dependencies by placing indirectly dependent data in a separate table and linking it with a foreign key. section 6.7
Use the figure to compare duplicated manufacturer values before and after an incomplete update. section 2.3
