Normalization
Normalization
Normalization
• Normalization is a process of organizing the data in
database to avoid data redundancy, insertion anomaly,
update anomaly & deletion anomaly.
Anomalies in DBMS
• There are three types of anomalies that occur when the
database is not normalized.
• Insert anomaly
• Update anomaly
• Delete anomaly
Anomalies in DBMS
• Update anomaly: If we want to update the
Employee Employee_zip
emp_id emp_name emp_zip emp_zip emp_state emp_city emp_district
1001 John 282005 282005 UP Agra Dayal Bagh
1002 Ajeet 222008 222008 TN Chennai M-City
1006 Lora 282007 282007 TN Chennai Urrapakkam
1101 Lilly 292008 292008 UK Pauri Bhagwan
1201 Steve 222999 222999 MP Gwalior Ratan
Boyce Codd normal form (BCNF)
emp_id emp_nationality emp_dept dept_type dept_no_of_emp
1001 Austrian Production and planning D001 200
1001 Austrian stores D001 250
1002 American design and technical support D134 100
1002 American Purchasing department D134 600
emp_dept_mapping
emp_nationality emp_dept
emp_dept dept_type dept_no_of_emp emp_id emp_dept
emp_id emp_nationality
Production and planning D001 200 1001 Production and planning
1001 Austrian stores D001 250 1001 stores
1002 American design and technical support D134 100 1002 design and technical support
Purchasing department D134 600 1002 Purchasing department