Normalization data को व्यवस्थित करने की प्रक्रिया है ताकि redundancy को कम किया जा सके और data को संबंधित tables में बाँटकर integrity में सुधार किया जा सके, "normal forms" की एक श्रृंखला का पालन करते हुए। लक्ष्य: data का प्रत्येक टुकड़ा एक बार संग्रहीत होता है, duplication और इससे होने वाली anomalies से बचते हुए।
समस्या: एक denormalized (redundant) table
❌ orders table with everything in one place — data is DUPLICATED:
order_id | customer_name | customer_email | product | price
1 | Ann | [email protected] | Phone | 999
2 | Ann | [email protected] | Case | 20 ← Ann's info repeated!
Problems (anomalies):
✗ UPDATE anomaly — change Ann's email → must update EVERY one of her orders
✗ INSERT anomaly — can't add a customer without an order
✗ DELETE anomaly — deleting Ann's last order loses her info entirely
✗ Wasted storage and inconsistency risk
