SlideShare a Scribd company logo
3
Most read
8
Most read
10
Most read
NORMALIZATION 
BY, 
SALMAN_MEMON 
2K12/IT/109
HISTORY 
 Edgar F. Codd, the inventor of the 
relational model, introduced the concept of 
normalization and what we now know as the 
first normal form (1NF) in 1970. Codd went 
on to define the second normal form (2nf) 
and third normal form (3nf) in 1971
DATABASE NORMALIZATION 
• Database normalization is the process of 
removing redundant data from your tables in to 
improve storage efficiency, data integrity, and 
scalability. 
• In the relational model, methods exist for 
quantifying how efficient a database is. These 
classifications are called normal forms (or NF), 
and there are algorithms for converting a given 
database between them. 
• Normalization generally involves splitting 
existing tables into multiple ones, which must be 
re-joined or linked each time a query is issued.
NORMAL FORM 
Edgar F. Codd originally established 
three normal forms: 1NF, 2NF and 3NF. 
There are now others that are generally 
accepted, but 3NF is widely considered 
to be sufficient for most applications. 
Most tables when reaching 3NF are also 
in BCNF (boyce-codd normal form).
TABLE 1 
Title Author1 Author 
2 
ISBN Subject Pages Publisher 
Database 
System 
Concepts 
Abraham 
Silberschatz 
Henry F. 
Korth 
0072958863 MySQL, 
Computer 
s 
1168 McGraw- 
Hill 
Operating 
System 
Concepts 
Abraham 
Silberschatz 
Henry F. 
Korth 
0471694665 Computer 
s 
944 McGraw- 
Hill
TABLE 1 PROBLEMS 
• This table is not very efficient with 
storage. 
• This design does not protect data 
integrity. 
• Third, this table does not scale well.
FIRST NORMAL FORM 
• In our table 1, we have two 
violations of first normal form: 
• First, we have more than one author 
field, 
• Second, our subject field contains 
more than one piece of information. 
With more than one value in a single 
field, it would be very difficult to 
search for all books on a given 
subject.
FIRST NORMAL TABLE 
• TABLE 2 
Title Author ISBN Subject Pages Publisher 
Database 
System 
Concepts 
Abraham 
Silberschatz 
0072958863 MySQL 1168 McGraw-Hill 
Database 
System 
Concepts 
Henry F. 
Korth 
0072958863 Computers 1168 McGraw-Hill 
Operating 
System 
Concepts 
Henry F. 
Korth 
0471694665 Computers 944 McGraw-Hill 
Operating 
System 
Concepts 
Abraham 
Silberschatz 
0471694665 Computers 944 McGraw-Hill
• We now have two rows for a single 
book. Additionally, we would be 
violating the second normal form… 
• A better solution to our problem would 
be to separate the data into separate 
tables- an author table and a subject 
table to store our information, 
removing that information from the 
book table:
Subject_ID Subject 
1 MySQL 
2 Computers 
Author_ID Last Name First Name 
1 Silberschat 
z 
Abraham 
2 Korth Henry 
ISBN Title Pages Publisher 
0072958863 Database System 
Concepts 
1168 McGraw-Hill 
0471694665 Operating System 
Concepts 
944 McGraw-Hill 
Subject Table 
Author Table 
Book Table
• Each table has a primary key, used for 
joining tables together when querying 
the data. A primary key value must be 
unique with in the table (no two books 
can have the same ISBN number), and a 
primary key is also an index, which 
speeds up data retrieval based on the 
primary key. 
• Now to define relationships between 
the tables
RELATIONSHIPS 
ISBN Author_ID 
0072958863 1 
0072958863 2 
0471694665 1 
0471694665 2 
ISBN Subject_ID 
0072958863 1 
0072958863 2 
0471694665 2 
Book_Author Table 
Book_Subject Table
SECOND NORMAL FORM 
• As the first normal form deals with 
redundancy of data across a 
horizontal row, second normal form 
(or 2NF) deals with redundancy of 
data in vertical columns. 
• As stated earlier, the normal forms 
are progressive, so to achieve 
second normal form, the tables must 
already be in first normal form. 
• The book table will be used for the 
2nf example
2NF TABLE 
Publisher_ID Publisher Name 
1 McGraw-Hill 
ISBN Title Pages Publisher_ID 
0072958863 Database System 
Concepts 
1168 1 
0471694665 Operating System 
Concepts 
944 1 
Publisher Table 
Book Table
2NF 
• Here we have a one-to-many 
relationship between the book table 
and the publisher. A book has only one 
publisher, and a publisher will publish 
many books. When we have a one-to-many 
relationship, we place a foreign 
key in the book table, pointing to the 
primary key of the publisher table. 
• The other requirement for second 
normal form is that you cannot have 
any data in a table with a composite 
key that does not relate to all portions 
of the composite key.
THIRD NORMAL FORM 
• Third normal form (3NF) requires 
that there are no functional 
dependencies of non-key attributes 
on something other than a candidate 
key. 
• A table is in 3nf if all of the non-primary 
key attributes are mutually 
independent 
• There should not be transitive 
dependencies
Normalization

More Related Content

PPT
Databases: Normalisation
PPTX
Normalization in DBMS
PPTX
Normalization in DBMS
PDF
Get to know PostgreSQL!
PDF
Database Normalization
PDF
Banco de Dados I Aula 06 - Generalização e Especialização
PDF
Platform technology
PDF
Database design & Normalization (1NF, 2NF, 3NF)
Databases: Normalisation
Normalization in DBMS
Normalization in DBMS
Get to know PostgreSQL!
Database Normalization
Banco de Dados I Aula 06 - Generalização e Especialização
Platform technology
Database design & Normalization (1NF, 2NF, 3NF)

What's hot (20)

PPT
Normalization PRESENTATION
PDF
Normalization in DBMS
PPT
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
PPTX
normaliztion
PPTX
Normal forms
PPT
Normalization
PPTX
Dbms normalization
PPTX
Advanced SQL
PPT
Normalization
PPTX
PPT
1. Introduction to DBMS
PPTX
Query processing and optimization (updated)
PPTX
Normalization
PPT
Joins in SQL
PPTX
Integrity Constraints
PPTX
serializability in dbms
PPT
Enhanced E-R diagram
PPTX
Functional dependencies and normalization
PPTX
DATABASE CONSTRAINTS
PPTX
Database Concept - Normalization (1NF, 2NF, 3NF)
Normalization PRESENTATION
Normalization in DBMS
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
normaliztion
Normal forms
Normalization
Dbms normalization
Advanced SQL
Normalization
1. Introduction to DBMS
Query processing and optimization (updated)
Normalization
Joins in SQL
Integrity Constraints
serializability in dbms
Enhanced E-R diagram
Functional dependencies and normalization
DATABASE CONSTRAINTS
Database Concept - Normalization (1NF, 2NF, 3NF)
Ad

Similar to Normalization (20)

PPTX
Normalization presentation in Database Management System
PPT
Normalization
PPT
Jason Park Normalization
PPTX
Karan normalization in sql
PPT
Normalization
PPT
Normalization
PPT
Normalization Accepted
PPTX
Database Normalization.pptx
PPTX
Kumar lav
PPTX
Normalization,1st NF, 2nd NF, 3rd NF, BCNF, 4th NF, 5th NF
PPTX
Unit 3 dbms
PPTX
normalization.pptx, DBMS Normalization First Normal Form and Second Normal Form
PDF
bigD3_mapReducebigD3_mapReducebigD3_mapReduce.pdf
PPT
Unit 3 normalization.ppt;lmf;mgsd'gmsdf;lgmsdflgmsdflkgsd
PPTX
normalisation jdsuhduswwhdusw cdscsacasc.pptx
DOCX
Asst 2 Normalization of CanAmazing.com User Views__________.docx
PPTX
Normalisation
PDF
Relational Theory for Budding Einsteins -- LonestarPHP 2016
PPTX
Normalisation
Normalization presentation in Database Management System
Normalization
Jason Park Normalization
Karan normalization in sql
Normalization
Normalization
Normalization Accepted
Database Normalization.pptx
Kumar lav
Normalization,1st NF, 2nd NF, 3rd NF, BCNF, 4th NF, 5th NF
Unit 3 dbms
normalization.pptx, DBMS Normalization First Normal Form and Second Normal Form
bigD3_mapReducebigD3_mapReducebigD3_mapReduce.pdf
Unit 3 normalization.ppt;lmf;mgsd'gmsdf;lgmsdflgmsdflkgsd
normalisation jdsuhduswwhdusw cdscsacasc.pptx
Asst 2 Normalization of CanAmazing.com User Views__________.docx
Normalisation
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Normalisation
Ad

More from Salman Memon (20)

PPTX
PHP Array very Easy Demo
PPTX
Complete Lecture on Css presentation
PPTX
How to Use Dreamweaver cs6
PPTX
what is programming and its clear Concepts to the point
PPTX
Working with variables in PHP
PPT
Web forms and html (lect 5)
PPT
Web forms and html (lect 4)
PPT
Web forms and html (lect 3)
PPT
Web forms and html (lect 2)
PPT
Web forms and html (lect 1)
PPT
Managing in the Future Enterprise
PPT
Overview of Technology Management
PPT
Align Information Technology and Business Strategy
PPTX
WHITE BOX & BLACK BOX TESTING IN DATABASE
PPTX
Email security netwroking
PPTX
Email security - Netwroking
PPTX
Query decomposition in data base
PPTX
Time Management
PPTX
Multimedea device and routes
PPTX
Hash function
PHP Array very Easy Demo
Complete Lecture on Css presentation
How to Use Dreamweaver cs6
what is programming and its clear Concepts to the point
Working with variables in PHP
Web forms and html (lect 5)
Web forms and html (lect 4)
Web forms and html (lect 3)
Web forms and html (lect 2)
Web forms and html (lect 1)
Managing in the Future Enterprise
Overview of Technology Management
Align Information Technology and Business Strategy
WHITE BOX & BLACK BOX TESTING IN DATABASE
Email security netwroking
Email security - Netwroking
Query decomposition in data base
Time Management
Multimedea device and routes
Hash function

Recently uploaded (20)

PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Insiders guide to clinical Medicine.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
master seminar digital applications in india
PDF
Complications of Minimal Access Surgery at WLH
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Pre independence Education in Inndia.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Insiders guide to clinical Medicine.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Basic Mud Logging Guide for educational purpose
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Microbial disease of the cardiovascular and lymphatic systems
Final Presentation General Medicine 03-08-2024.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Anesthesia in Laparoscopic Surgery in India
master seminar digital applications in india
Complications of Minimal Access Surgery at WLH
Supply Chain Operations Speaking Notes -ICLT Program
O5-L3 Freight Transport Ops (International) V1.pdf
Pre independence Education in Inndia.pdf

Normalization

  • 2. HISTORY  Edgar F. Codd, the inventor of the relational model, introduced the concept of normalization and what we now know as the first normal form (1NF) in 1970. Codd went on to define the second normal form (2nf) and third normal form (3nf) in 1971
  • 3. DATABASE NORMALIZATION • Database normalization is the process of removing redundant data from your tables in to improve storage efficiency, data integrity, and scalability. • In the relational model, methods exist for quantifying how efficient a database is. These classifications are called normal forms (or NF), and there are algorithms for converting a given database between them. • Normalization generally involves splitting existing tables into multiple ones, which must be re-joined or linked each time a query is issued.
  • 4. NORMAL FORM Edgar F. Codd originally established three normal forms: 1NF, 2NF and 3NF. There are now others that are generally accepted, but 3NF is widely considered to be sufficient for most applications. Most tables when reaching 3NF are also in BCNF (boyce-codd normal form).
  • 5. TABLE 1 Title Author1 Author 2 ISBN Subject Pages Publisher Database System Concepts Abraham Silberschatz Henry F. Korth 0072958863 MySQL, Computer s 1168 McGraw- Hill Operating System Concepts Abraham Silberschatz Henry F. Korth 0471694665 Computer s 944 McGraw- Hill
  • 6. TABLE 1 PROBLEMS • This table is not very efficient with storage. • This design does not protect data integrity. • Third, this table does not scale well.
  • 7. FIRST NORMAL FORM • In our table 1, we have two violations of first normal form: • First, we have more than one author field, • Second, our subject field contains more than one piece of information. With more than one value in a single field, it would be very difficult to search for all books on a given subject.
  • 8. FIRST NORMAL TABLE • TABLE 2 Title Author ISBN Subject Pages Publisher Database System Concepts Abraham Silberschatz 0072958863 MySQL 1168 McGraw-Hill Database System Concepts Henry F. Korth 0072958863 Computers 1168 McGraw-Hill Operating System Concepts Henry F. Korth 0471694665 Computers 944 McGraw-Hill Operating System Concepts Abraham Silberschatz 0471694665 Computers 944 McGraw-Hill
  • 9. • We now have two rows for a single book. Additionally, we would be violating the second normal form… • A better solution to our problem would be to separate the data into separate tables- an author table and a subject table to store our information, removing that information from the book table:
  • 10. Subject_ID Subject 1 MySQL 2 Computers Author_ID Last Name First Name 1 Silberschat z Abraham 2 Korth Henry ISBN Title Pages Publisher 0072958863 Database System Concepts 1168 McGraw-Hill 0471694665 Operating System Concepts 944 McGraw-Hill Subject Table Author Table Book Table
  • 11. • Each table has a primary key, used for joining tables together when querying the data. A primary key value must be unique with in the table (no two books can have the same ISBN number), and a primary key is also an index, which speeds up data retrieval based on the primary key. • Now to define relationships between the tables
  • 12. RELATIONSHIPS ISBN Author_ID 0072958863 1 0072958863 2 0471694665 1 0471694665 2 ISBN Subject_ID 0072958863 1 0072958863 2 0471694665 2 Book_Author Table Book_Subject Table
  • 13. SECOND NORMAL FORM • As the first normal form deals with redundancy of data across a horizontal row, second normal form (or 2NF) deals with redundancy of data in vertical columns. • As stated earlier, the normal forms are progressive, so to achieve second normal form, the tables must already be in first normal form. • The book table will be used for the 2nf example
  • 14. 2NF TABLE Publisher_ID Publisher Name 1 McGraw-Hill ISBN Title Pages Publisher_ID 0072958863 Database System Concepts 1168 1 0471694665 Operating System Concepts 944 1 Publisher Table Book Table
  • 15. 2NF • Here we have a one-to-many relationship between the book table and the publisher. A book has only one publisher, and a publisher will publish many books. When we have a one-to-many relationship, we place a foreign key in the book table, pointing to the primary key of the publisher table. • The other requirement for second normal form is that you cannot have any data in a table with a composite key that does not relate to all portions of the composite key.
  • 16. THIRD NORMAL FORM • Third normal form (3NF) requires that there are no functional dependencies of non-key attributes on something other than a candidate key. • A table is in 3nf if all of the non-primary key attributes are mutually independent • There should not be transitive dependencies