SlideShare a Scribd company logo
1 of 17
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

What's hot

Lecture 04 normalization
Lecture 04 normalization Lecture 04 normalization
Lecture 04 normalization
emailharmeet
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
daxesh chauhan
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
koolkampus
 

What's hot (20)

Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NFNormalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
 
SQL(DDL & DML)
SQL(DDL & DML)SQL(DDL & DML)
SQL(DDL & DML)
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
1.4 data independence
1.4 data independence1.4 data independence
1.4 data independence
 
Lecture 04 normalization
Lecture 04 normalization Lecture 04 normalization
Lecture 04 normalization
 
DBMS - Normalization
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
 
Normalization PRESENTATION
Normalization PRESENTATIONNormalization PRESENTATION
Normalization PRESENTATION
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 
Data independence
Data independenceData independence
Data independence
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
 
Normalization
NormalizationNormalization
Normalization
 
Relational model
Relational modelRelational model
Relational model
 
Relational algebra in DBMS
Relational algebra in DBMSRelational algebra in DBMS
Relational algebra in DBMS
 
Sql operators & functions 3
Sql operators & functions 3Sql operators & functions 3
Sql operators & functions 3
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 

Similar to Normalization

Normalization
NormalizationNormalization
Normalization
lingesan
 
Karan normalization in sql
Karan normalization in sqlKaran normalization in sql
Karan normalization in sql
KARANKOTECHA123
 
Asst 2 Normalization of CanAmazing.com User Views__________.docx
  Asst 2 Normalization of CanAmazing.com  User Views__________.docx  Asst 2 Normalization of CanAmazing.com  User Views__________.docx
Asst 2 Normalization of CanAmazing.com User Views__________.docx
joyjonna282
 
Normalisation
NormalisationNormalisation
Normalisation
listergc
 
Normalisation
NormalisationNormalisation
Normalisation
listergc
 
chapter08 - Database fundamentals.pdf
chapter08 - Database fundamentals.pdfchapter08 - Database fundamentals.pdf
chapter08 - Database fundamentals.pdf
satonaka3
 
Normalization form tutorial
Normalization form tutorialNormalization form tutorial
Normalization form tutorial
Nikhildas P C
 
ORACLE: Normalization student
ORACLE: Normalization student ORACLE: Normalization student
ORACLE: Normalization student
jomerson remorosa
 

Similar to Normalization (20)

Normalization presentation in Database Management System
Normalization presentation in Database Management System Normalization presentation in Database Management System
Normalization presentation in Database Management System
 
Normalization
NormalizationNormalization
Normalization
 
Jason Park Normalization
Jason Park NormalizationJason Park Normalization
Jason Park Normalization
 
Karan normalization in sql
Karan normalization in sqlKaran normalization in sql
Karan normalization in sql
 
Normalization
NormalizationNormalization
Normalization
 
Normalization
NormalizationNormalization
Normalization
 
Normalization Accepted
Normalization AcceptedNormalization Accepted
Normalization Accepted
 
Database Normalization.pptx
Database Normalization.pptxDatabase Normalization.pptx
Database Normalization.pptx
 
Kumar lav
Kumar lavKumar lav
Kumar lav
 
Normalization,1st NF, 2nd NF, 3rd NF, BCNF, 4th NF, 5th NF
Normalization,1st NF, 2nd NF, 3rd NF, BCNF, 4th NF, 5th NF Normalization,1st NF, 2nd NF, 3rd NF, BCNF, 4th NF, 5th NF
Normalization,1st NF, 2nd NF, 3rd NF, BCNF, 4th NF, 5th NF
 
Unit 3 dbms
Unit 3 dbmsUnit 3 dbms
Unit 3 dbms
 
Asst 2 Normalization of CanAmazing.com User Views__________.docx
  Asst 2 Normalization of CanAmazing.com  User Views__________.docx  Asst 2 Normalization of CanAmazing.com  User Views__________.docx
Asst 2 Normalization of CanAmazing.com User Views__________.docx
 
Normalisation
NormalisationNormalisation
Normalisation
 
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016
 
Normalisation
NormalisationNormalisation
Normalisation
 
chapter08 - Database fundamentals.pdf
chapter08 - Database fundamentals.pdfchapter08 - Database fundamentals.pdf
chapter08 - Database fundamentals.pdf
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design
 
Normalization form tutorial
Normalization form tutorialNormalization form tutorial
Normalization form tutorial
 
Normalization: A Workshop for Everybody Pt. 2
Normalization: A Workshop for Everybody Pt. 2Normalization: A Workshop for Everybody Pt. 2
Normalization: A Workshop for Everybody Pt. 2
 
ORACLE: Normalization student
ORACLE: Normalization student ORACLE: Normalization student
ORACLE: Normalization student
 

More from Salman Memon

More from Salman Memon (20)

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

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

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