DB12 Normalization
DB12 Normalization
Database Systems
1
Normalization
Chapter - 14
2
▪ Database normalization is the
process of organizing the fields and
tables of a relational database to
minimize redundancy.
Normalization ▪ Normalization usually involves
dividing large tables into smaller
(and less redundant) tables and
defining relationships between
them.
▪ The objective is to separate data so
that additions, deletions, and
modifications of a field can be made
in just one table and then
Normalization propagated through the rest of the
database using the defined
relationships.
▪ Normalized design makes the
maintenance of database easier.
User View
Unnormalized
Relationship
Remove repeating groups
Normalization Normalized
Relations (1NF)
Remove partial dependencies
Second Normal Form
Relations (2NF)
Remove transitive dependencies
Third Normal Form
Relations (1NF)
Chapter 17 Designing Databases 17-6
▪ A state of DB that can lead the
DB to inconsistency or incorrect
state of database
Anomalies
▪ Three types of anomalies are of
concern here which occur due to
Redundancy, insertion, deletion
and updation
SID SNAME CID Subject FID FName
101 Ahmed C1 Math F1 Ali
102 Waqas C1 Math F1 Ali
103 Aslam C2 English F2 Ayan
104 Farooq C2 English F2 Ayan
2 NF 2
3
1
2
Karachi
Rawalpindi
Second 4 3 Islamabad
BCS 132
BIT 134
3 NF
Third stId stName stAdr prName
Normal
S1020 Sohail Dar I-8 Islamabad MCS
Form
S1038 Shoaib Ali G-6 Islamabad BCS
Computer
101 Science & DBMS B_001 201
Engineering
Computer
Computer
101 Science & B_001 202
Networks
Engineering
Electronics &
VLSI
102 Communicatio B_003 401
Technology
n Engineering
27
1NF
2NF
3NF
31
Thank You
32