SlideShare a Scribd company logo
Normalization
1st ,2nd and 3rd Normal Form
By
Rizwan , A.Rehman And Imran
Normalization(def)
• The Process of producing a simple and more
reliable database structure. Or
• Normalization is a process of moving data into
related field.
• This process works through different stages
known as normal form.
• These stages are 1st ,2nd ,and 3rd normal form.
Purpose of Normalization
• It makes the database design efficient in
performance.
• It reduce the amount of data if possible.
• It makes the database design free of update ,
insertion and deletion problems.
• It identifies relationship between entities.
Characteristics of normalized Database
• Each relation must have a key field.
• All fields must contain atomic data.
• There must be no repeating fields.
• Each table must contain information about a
single entity.
• Each field in a relation must depend on key field.
• All non-key fields must be mutually independent.
Users
Users requirement
Specification
Source like Data
dictionary & Data
Model
Data Source
Second Normal Form(2NF)
First Normalized Form(1NF)
Un-Normal Form(UNF)
Third Normal Form(3NF)
Transfer attributed into Table format
Remove repeating groups
Remove Partial dependencies
Remove transitive dependencies
1st Normal Form
The Requirements
• Each table has a primary key: minimal set of
attributes which can uniquely identify a
record.
• The values in each column of a table are
atomic (No multi-value attributes allowed).
• There are no repeating groups: two columns
do not store similar information in the same
table.
1st NF Example
Accountant
#
Skill
#
Skill
Category
Proficiency
#
Accountant
Name
Accountant
Age
Group
#
Grou
p
Super
visor
21 113 Systems 3 Ali 55 52 Baber
35
113
179
204
Systems
Tax
Audit
5
1
6
Daud
32 44 Ali
50 179 Tax 2 Chohan 40 44 Ali
77 148
179
Consulting
Tax
6
6
Zahid 52 52 Baber
The above relation is un-normalize because it contain repeating groups of three
attributes Skill number, Skill category and Proficiency number.
1st NF Example
Accountant
#
Skill
#
Skill
Category
Proficienc
y #
Accountant
Name
Accountant
Age
Group
#
Group
Supervi
sor
21 113 Systems 3 Ali 55 52 Baber
35 113 Systems 5 Daud 32 44 Ali
35 179 Tax 1 Daud 32 44 Ali
35 204 Audit 6 Daud 32 44 Ali
50 179 Tax 2 Chohan 40 44 Ali
77 148 Consulting 6 Zahid 52 52 Baber
77 179 Tax 6 Zahid 52 52 Baber
Normalize Form
Primary Key
Problems Of 1NF
 Updating Problem: Suppose user want to change name Accountant # 35 to
M.Daud. He has to name all record in which accountant number 35 appears.
 Inconsistent Data: The above table may contain inconsistent data. There are
three records of Accountant # 35.It is possible that there are two different names
with Account number 35 in two different records. The user can make this error
during updating.
 Addition Problem: Suppose the user want to add another skill number in the
table. It is not possible until an Accountant with that skill exists because both skill
number and Accountant Number are used as primary key.
 Deletion Problem: Suppose the user want to delete the record of Supervisor
Ali.If he delete the whole record in which Ali appears, the information about
Accountant will also be lost.
2nd Normal Form
The Requirements
• All requirements for 1st NF must be met.
• Redundant data across multiple rows of a table must
be moved to a separate table.
• The above relation in 1NF has some attributes which
are not depending on the primary key. E.g.
Accountant Name, Accountant Age, And group
Information is determined by Accountant Number
and is not dependent on skill. The following relation
can be created in which all attributes are fully
dependent on primary key account number.
Accountant # Accountant
Name
Accountant
Age
Group # Group
Supervisor
21 Ali 55 52 Baber
35 Daud 32 44 Ali
50 Chohan 40 44 Ali
70 Zahid 52 52 Baber
Primary Key
Skill Number Skill Category
113 System
179 Tax
204 Audit
148 Consulting
Similarly , Another relation skill can be created
in which all fields are fully dependent on the
primary key as follows.
Primary Key
The attribute Proficiency in 1NF relation was fully dependent on the whole primary key. The
proficiency require to know the accountant number and skill number. The third relation will be
create as follows.
Skill Table in 2NF
Accountant Table in 2NF
Accountant
Number
Skill
Number
Proficiency
21 113 3
35 113 5
35 179 1
35 204 6
50 179 2
77 148 6
77 179 6
Primary key
There are three relations in second normal form(2NF). The attributes of all relations
are fully dependent on the primary key's.
Proficiency Table in 2NF
Analysis Of 2NF
The following analysis indicates whether the problems are eliminated in 2NF or not.
 Updating Problem: If the user need to change the name of Accountant
Number 35 to “M.Daud” in 1NF, he must change the name in every record in
which Accountant Number 35 appears. But in 2NF, the record of one accountant
appears only once. The updating problem eliminated in 2NF.
 Inconsistent Data: The record of one accountant appears only once in the
database, the possibility of inconsistent data is automatically eliminated.
 Addition Problem: In 1NF, it was not possible to enter a new Skill Number
until an Accountant with that skill existed. In 2NF, Any number of skills can be
added in skill relation with out an accountant with that skill. It eliminates the
addition problem.
 Deletion Problem: In 2NF, if the record of Ali is deleted, it does not delete
any other record.
Transitive Dependency(def)
Transitive dependency is a condition in which an
attribute is dependent on an attribute that is not part of
primary key.
Suppose A, B and C are attributes of a relation. If A
approach to B and B approach to C then C is transitively
dependent on A through B provided that A is not
functionally dependent on B or C.
In third Normal Form(3NF) we remove Transitive
dependency.
3rd Normal Form
The Requirements
 All requirements for 2nd NF must be met.
 Remove all attributes from the 2NF record that
depend on another non-key field.
 Place them into a new relation with the another
attribute as the primary key.
The Accountant table in 2NF, contain some attributes which are
depending on non-key attributes. For example, Group City and
Group Supervisor are depending on a non-key field Group Number.
A new relation can be created as;
Accountant
Number
Accountant
Name
Accountant
Age
Group
Number
21 Ali 55 52
35 Daud 32 44
50 Chohan 40 44
77 Zahid 52 52
Primary Key
The second table created form the Accountant table in 1NF is as follows:
Group
Number
Group
Supervisor
52 Baber
44 Ali
Both Accountant table and Group table contain the attribute is used to join both tables.
The skill table in 2NF contain no attribute, which is depending on a non-key attribute. It
is already in 3NF and will be used with out any further change.
Primary Key
Skill Table in 3NF
Accountant
Table in 3NF
Accountant
number
Skill
Number
Proficiency
21 113 3
35 113 5
35 179 1
35 204 6
50 179 2
77 148 6
77 179 6
Primary Key
Proficiency Table in 3NF
Conclusion
• We have seen how Database Normalization
can decrease redundancy, increase efficiency
and reduce anomalies by implementing three
of seven different levels of normalization
called Normal Forms. The first three NF’s are
usually sufficient for most small to medium
size applications.

More Related Content

PPTX
Functional dependencies in Database Management System
PPTX
Relational Database Design
PPTX
Functional dependency
XLS
Dbms Final Examination Answer Key
PPTX
Architecture of dbms(lecture 3)
PPTX
Normal forms
PDF
Database Systems - Normalization of Relations(Chapter 4/3)
PPTX
Introduction to database
Functional dependencies in Database Management System
Relational Database Design
Functional dependency
Dbms Final Examination Answer Key
Architecture of dbms(lecture 3)
Normal forms
Database Systems - Normalization of Relations(Chapter 4/3)
Introduction to database

What's hot (20)

PPTX
Normalization
PPTX
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
ODP
ER Model in DBMS
PDF
Enhanced Entity-Relationship (EER) Modeling
PPTX
Introduction to distributed database
PPTX
SQL Joins.pptx
PPTX
Normalization in RDBMS
PPTX
Normalization
PPT
Distributed Database System
PPTX
database Normalization
PPTX
Distributed database management system
DOC
Chapter-13-solutions
PPTX
Normalization of Data Base
PPTX
Normalization in a Database
PPTX
Linked stacks and queues
PDF
Mapping ER and EER Model
PDF
Database backup and recovery
PPT
normalization-1nf-to-3nf-with-same-example.ppt
PDF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
PDF
Java Linked List Tutorial | Edureka
Normalization
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
ER Model in DBMS
Enhanced Entity-Relationship (EER) Modeling
Introduction to distributed database
SQL Joins.pptx
Normalization in RDBMS
Normalization
Distributed Database System
database Normalization
Distributed database management system
Chapter-13-solutions
Normalization of Data Base
Normalization in a Database
Linked stacks and queues
Mapping ER and EER Model
Database backup and recovery
normalization-1nf-to-3nf-with-same-example.ppt
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Java Linked List Tutorial | Edureka
Ad

Viewers also liked (18)

PPT
Lecture8 Normalization Aggarwal
PDF
BitNation Client-Server Manual
KEY
Normalization
PPTX
Normalization
PPTX
Lis124
PPTX
Normalization 1 nf,2nf,3nf,bcnf
PPTX
PPTX
NORMALIZATION - BIS 1204: Data and Information Management I
PPTX
Normalization in DBMS
PPTX
Mest 1 guidance
PPTX
Database Normalization
PPT
Normalization
PPTX
Normalization
PPT
DBMS - Normalization
PPT
Databases: Normalisation
PPT
Lecture 04 normalization
PDF
Important java programs(collection+file)
PDF
Database design & Normalization (1NF, 2NF, 3NF)
Lecture8 Normalization Aggarwal
BitNation Client-Server Manual
Normalization
Normalization
Lis124
Normalization 1 nf,2nf,3nf,bcnf
NORMALIZATION - BIS 1204: Data and Information Management I
Normalization in DBMS
Mest 1 guidance
Database Normalization
Normalization
Normalization
DBMS - Normalization
Databases: Normalisation
Lecture 04 normalization
Important java programs(collection+file)
Database design & Normalization (1NF, 2NF, 3NF)
Ad

Similar to Normalization.riz (20)

PPTX
Normalization
PPTX
Database - Normalization
PPTX
Normalization in Relational database management systems
PPTX
Normalization in rdbms types and examples
PPTX
Database Normalization a topic of data base for BS program and others.
PDF
Chapter – 4 Normalization and Relational Algebra.pdf
PPT
Normalization.ppt
PDF
Normalization in Database
PPTX
PDF
1683368767418684.pdf
PDF
Impact of Normalization in Future
PPTX
Database Concept - Normalization (1NF, 2NF, 3NF)
PPTX
L1-Normalization 1NF 2NF 3NF 4NF BCNF.pptx
PPTX
Normalization and three normal forms.pptx
PDF
Assignment#11
PDF
Normalization in DBMS
PPTX
Database normalization
PPTX
Presentation on Normalization.pptx
PPTX
6. normalization
Normalization
Database - Normalization
Normalization in Relational database management systems
Normalization in rdbms types and examples
Database Normalization a topic of data base for BS program and others.
Chapter – 4 Normalization and Relational Algebra.pdf
Normalization.ppt
Normalization in Database
1683368767418684.pdf
Impact of Normalization in Future
Database Concept - Normalization (1NF, 2NF, 3NF)
L1-Normalization 1NF 2NF 3NF 4NF BCNF.pptx
Normalization and three normal forms.pptx
Assignment#11
Normalization in DBMS
Database normalization
Presentation on Normalization.pptx
6. normalization

Recently uploaded (20)

PDF
Computing-Curriculum for Schools in Ghana
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Institutional Correction lecture only . . .
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
RMMM.pdf make it easy to upload and study
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Classroom Observation Tools for Teachers
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
Computing-Curriculum for Schools in Ghana
Final Presentation General Medicine 03-08-2024.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Pharma ospi slides which help in ospi learning
Institutional Correction lecture only . . .
Anesthesia in Laparoscopic Surgery in India
RMMM.pdf make it easy to upload and study
human mycosis Human fungal infections are called human mycosis..pptx
Classroom Observation Tools for Teachers
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
01-Introduction-to-Information-Management.pdf
Sports Quiz easy sports quiz sports quiz
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
102 student loan defaulters named and shamed – Is someone you know on the list?
Supply Chain Operations Speaking Notes -ICLT Program
Cell Types and Its function , kingdom of life
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Cell Structure & Organelles in detailed.
Module 4: Burden of Disease Tutorial Slides S2 2025

Normalization.riz

  • 1. Normalization 1st ,2nd and 3rd Normal Form By Rizwan , A.Rehman And Imran
  • 2. Normalization(def) • The Process of producing a simple and more reliable database structure. Or • Normalization is a process of moving data into related field. • This process works through different stages known as normal form. • These stages are 1st ,2nd ,and 3rd normal form.
  • 3. Purpose of Normalization • It makes the database design efficient in performance. • It reduce the amount of data if possible. • It makes the database design free of update , insertion and deletion problems. • It identifies relationship between entities.
  • 4. Characteristics of normalized Database • Each relation must have a key field. • All fields must contain atomic data. • There must be no repeating fields. • Each table must contain information about a single entity. • Each field in a relation must depend on key field. • All non-key fields must be mutually independent.
  • 5. Users Users requirement Specification Source like Data dictionary & Data Model Data Source Second Normal Form(2NF) First Normalized Form(1NF) Un-Normal Form(UNF) Third Normal Form(3NF) Transfer attributed into Table format Remove repeating groups Remove Partial dependencies Remove transitive dependencies
  • 6. 1st Normal Form The Requirements • Each table has a primary key: minimal set of attributes which can uniquely identify a record. • The values in each column of a table are atomic (No multi-value attributes allowed). • There are no repeating groups: two columns do not store similar information in the same table.
  • 7. 1st NF Example Accountant # Skill # Skill Category Proficiency # Accountant Name Accountant Age Group # Grou p Super visor 21 113 Systems 3 Ali 55 52 Baber 35 113 179 204 Systems Tax Audit 5 1 6 Daud 32 44 Ali 50 179 Tax 2 Chohan 40 44 Ali 77 148 179 Consulting Tax 6 6 Zahid 52 52 Baber The above relation is un-normalize because it contain repeating groups of three attributes Skill number, Skill category and Proficiency number.
  • 8. 1st NF Example Accountant # Skill # Skill Category Proficienc y # Accountant Name Accountant Age Group # Group Supervi sor 21 113 Systems 3 Ali 55 52 Baber 35 113 Systems 5 Daud 32 44 Ali 35 179 Tax 1 Daud 32 44 Ali 35 204 Audit 6 Daud 32 44 Ali 50 179 Tax 2 Chohan 40 44 Ali 77 148 Consulting 6 Zahid 52 52 Baber 77 179 Tax 6 Zahid 52 52 Baber Normalize Form Primary Key
  • 9. Problems Of 1NF  Updating Problem: Suppose user want to change name Accountant # 35 to M.Daud. He has to name all record in which accountant number 35 appears.  Inconsistent Data: The above table may contain inconsistent data. There are three records of Accountant # 35.It is possible that there are two different names with Account number 35 in two different records. The user can make this error during updating.  Addition Problem: Suppose the user want to add another skill number in the table. It is not possible until an Accountant with that skill exists because both skill number and Accountant Number are used as primary key.  Deletion Problem: Suppose the user want to delete the record of Supervisor Ali.If he delete the whole record in which Ali appears, the information about Accountant will also be lost.
  • 10. 2nd Normal Form The Requirements • All requirements for 1st NF must be met. • Redundant data across multiple rows of a table must be moved to a separate table. • The above relation in 1NF has some attributes which are not depending on the primary key. E.g. Accountant Name, Accountant Age, And group Information is determined by Accountant Number and is not dependent on skill. The following relation can be created in which all attributes are fully dependent on primary key account number.
  • 11. Accountant # Accountant Name Accountant Age Group # Group Supervisor 21 Ali 55 52 Baber 35 Daud 32 44 Ali 50 Chohan 40 44 Ali 70 Zahid 52 52 Baber Primary Key Skill Number Skill Category 113 System 179 Tax 204 Audit 148 Consulting Similarly , Another relation skill can be created in which all fields are fully dependent on the primary key as follows. Primary Key The attribute Proficiency in 1NF relation was fully dependent on the whole primary key. The proficiency require to know the accountant number and skill number. The third relation will be create as follows. Skill Table in 2NF Accountant Table in 2NF
  • 12. Accountant Number Skill Number Proficiency 21 113 3 35 113 5 35 179 1 35 204 6 50 179 2 77 148 6 77 179 6 Primary key There are three relations in second normal form(2NF). The attributes of all relations are fully dependent on the primary key's. Proficiency Table in 2NF
  • 13. Analysis Of 2NF The following analysis indicates whether the problems are eliminated in 2NF or not.  Updating Problem: If the user need to change the name of Accountant Number 35 to “M.Daud” in 1NF, he must change the name in every record in which Accountant Number 35 appears. But in 2NF, the record of one accountant appears only once. The updating problem eliminated in 2NF.  Inconsistent Data: The record of one accountant appears only once in the database, the possibility of inconsistent data is automatically eliminated.  Addition Problem: In 1NF, it was not possible to enter a new Skill Number until an Accountant with that skill existed. In 2NF, Any number of skills can be added in skill relation with out an accountant with that skill. It eliminates the addition problem.  Deletion Problem: In 2NF, if the record of Ali is deleted, it does not delete any other record.
  • 14. Transitive Dependency(def) Transitive dependency is a condition in which an attribute is dependent on an attribute that is not part of primary key. Suppose A, B and C are attributes of a relation. If A approach to B and B approach to C then C is transitively dependent on A through B provided that A is not functionally dependent on B or C. In third Normal Form(3NF) we remove Transitive dependency.
  • 15. 3rd Normal Form The Requirements  All requirements for 2nd NF must be met.  Remove all attributes from the 2NF record that depend on another non-key field.  Place them into a new relation with the another attribute as the primary key. The Accountant table in 2NF, contain some attributes which are depending on non-key attributes. For example, Group City and Group Supervisor are depending on a non-key field Group Number. A new relation can be created as;
  • 16. Accountant Number Accountant Name Accountant Age Group Number 21 Ali 55 52 35 Daud 32 44 50 Chohan 40 44 77 Zahid 52 52 Primary Key The second table created form the Accountant table in 1NF is as follows: Group Number Group Supervisor 52 Baber 44 Ali Both Accountant table and Group table contain the attribute is used to join both tables. The skill table in 2NF contain no attribute, which is depending on a non-key attribute. It is already in 3NF and will be used with out any further change. Primary Key Skill Table in 3NF Accountant Table in 3NF
  • 17. Accountant number Skill Number Proficiency 21 113 3 35 113 5 35 179 1 35 204 6 50 179 2 77 148 6 77 179 6 Primary Key Proficiency Table in 3NF
  • 18. Conclusion • We have seen how Database Normalization can decrease redundancy, increase efficiency and reduce anomalies by implementing three of seven different levels of normalization called Normal Forms. The first three NF’s are usually sufficient for most small to medium size applications.