Professional Documents
Culture Documents
Database Chapter 5
Database Chapter 5
Zerihun E.
1
Chapter Five
2
Chapter Five
Cont…
• After converting the ER diagram into table forms. the next phase is implementing the
process of normalization.
3
Chapter Five
Cont.
• Normalization: is essentially the process of taking a wide table with lots of columns but
few rows and redesigning it as several narrow tables with fewer columns but more rows.
• Normalization is a process of organizing the data in database to avoid data redundancy,
insertion anomaly, update anomaly & deletion anomaly
• A properly normalized design allows you to use:-
• Eliminate redundant data
• Reduce or eliminate inconsistent data and
• Ease the data maintenance burden.
4
Chapter Five
Normalization
• A properly normalized design allows you to use storage space efficiently, eliminate
redundant data and ease the data maintenance burden.
5
Chapter Five
Cont.
• Insertion Anomalies
• Example: StudentID , StudentName, dept, depthead, deptphone
studId Stud_name dept Dept_head dept_phone
Cont.
• Deletion Anomalies
• Example: StudentID , StudentName, dept, depthead, deptphone
studId Stud_name dept Dept_head dept_phone
Cont.
• Updation Anomalies
• Example: StudentID , StudentName, dept, depthead, deptphone
studId Stud_name dept Dept_head dept_phone
• When we delete Dept head and one single row missed there will have updation anomalies.
8
Chapter Five
• The logical associations between data items and one item is functional dependent to
another item called functional dependency.
9
Chapter Five
• Example:
1
0
Chapter Five
Example:
• Dinner->Wine: Since the type of Wine served depends on the type of Dinner, we say
Wine is functionally dependent on Dinner.
• Both Wine type and Fork type are determined by the Dinner.
• Dinner->Wine
• Dinner-Fork
1
1
Chapter Five
Forms of Normalization
• Relational database theorists have divided normalization into several rules called
Normal forms.
1
2
Chapter Five
Forms of Normalization
1
3
Chapter Five
Forms of Normalization
1
4
Chapter Five
Forms of Normalization
Forms of Normalization
16
Chapter Five
Forms of Normalization
17
Chapter Five
Forms of Normalization
18
Chapter Five
Forms of Normalization
Forms of Normalization
20
Chapter Five
• Pitfalls(Problems) of Normalization
• Requires data to see the problems
• May reduce performance of the system
• Is time consuming,
• Difficult to design and apply
Don't go overboard with Third Normal Form or you'll result in destruction on
performance.
21
Chapter Five
Denormalization
22
Chapter Five
Denormalization
• Only one valid reason exists for denormalizing a relational design - to enhance
performance.
23