Uploaded by engrismailkhan1

normaliazation

advertisement
How to Normalize the below Table
Employee
No
1
2
3
4
Employee
Name
Amit
Divya
Rama
Rajah
Department
Department
No
OBIEE,ETL
101,102
COGNOS
103
Administrator 104
ETL
102
Salary
Slip No
0001
0002
0003
0001
Salary
50000
40000
57000
50000
So first we will apply first form of normalization in which the record will repeat with each Employee
Name.
Employee
No
1
1
2
3
4
Employee
Name
Amit
Amit
Divya
Rama
Rajah
Department
OBIEE
ETL
COGNOS
Administrator
ETL
Department
No
101
102
103
104
102
Salary Slip
No
0001
0001
0002
0003
0001
Salary
50000
50000
40000
57000
50000
Now apply second normal form
Employee No
Employee Name
Salary Slip No
Salary
1
Amit
0001
50000
2
Divya
0002
40000
3
Rama
0003
57000
4
Rajah
0001
50000
How to Normalize the below Table
Department No
Department
101
OBIEE
102
ETL
103
COGNOS
104
Administrator
Now applying third normal form
Employee No
Employee Name
Salary Slip No
1
Amit
0001
2
Divya
0002
3
Rama
0003
4
Rajah
0001
Salary Slip No
Salary
0001
50000
0002
40000
0003
57000
0001
50000
Download