Professional Documents
Culture Documents
Lesson 5
Lesson 5
Normalization
Made by:
Shahinaz S. Azab
Edited by:
Mona Saleh
Rana Salah
What is Normalization?
2
Why do we need Normalization?
3
Normalization Avoids
• Duplication of Data
• Insert Anomaly
• Delete Anomaly
• Update Anomaly
• Frequent Null Values
4
When to use Normalization?
5
Functional Dependency
6
Examples
7
Types of Functional Dependency
FD4
FD5
8
Types of Functional Dependency
9
Definition
10
First Normal Form
11
School Example
12
School Example 1NF
Stud_ID Tel
13
Second Normal Form
14
Guidelines
15
School Example 2NF
Stud_ID Tel
Subject Subject_Desc
16
Third Normal Form
17
School Example 3NF
Student
Stud_ID Name Location Level
Level
Level Level_Mgr
Student_Tel
Stud_ID Tel
Stud_Subject
Stud_ID Subject Grade
Subject
Subject Subject_Desc
18
ITI Example
ITI Students Sheet
19
1NF
20
2NF
21
3NF
23
ONF
24
1NF
• Student_Phone ( App_No,Phone)
25
2NF
• Student_Phone ( App_No,Phone)
26
3NF
• Student_Phone ( App_No,Phone)
where
• s# supplier identification number (this is the primary key)
• country name of country where supplier is located
• currency: Currency of the country of each supplier
• p# part number of part supplied
• qty quantity of parts supplied to date
28
1NF
• Supplier_Parts (S#,P#,qty)
29
2NF
Same as First
• Supplier_Parts (S#,P#,qty)
30
3NF
• Supplier_Parts (S#,P#,qty)
31
Sales Order
Fiction Company
202 N. Main
Mahattan, KS 66502
32
Questions?
33