SlideShare a Scribd company logo
NORMALIZATION & TYPES OF
NORMALIZATION
1) DEFINE NORMALIZATION
Normalization can be defined as :-
 A process of organizing the data in database to avoid data redundancy,
insertion anomaly, update anomaly & deletion anomaly.
• A process of organizing data into tables in such a way that the results
of using the database are always unambiguous and as intended. Such
normalization is intrinsic to relational database theory. It may have
the effect of duplicating data within the database and often results in
the creation of additional tables.
Types of normalization
 First Normal Form (1NF)
 Second Normal Form (2NF)
 Third Normal Form (3NF)
 Boyce-Codd Normal Form (BCNF)
 Fourth Normal Form (4NF)
 Fifth Normal Form (5NF)
First Normal Form (1NF)
First normal form enforces these criteria:
 Eliminate repeating groups in individual tables.
 Create a separate table for each set of related data.
 Identify each set of related data with a primary key
First Normal Form
Table_Product
Product Id Colour Price
1 Black, red Rs.210
2 Green Rs.150
3 Red Rs. 110
4 Green, blue Rs.260
5 Black Rs.100
This table is not in first normal
form because the “Colour”
column contains multiple
Values.
After decomposing it into first normal
form it looks like:
Product_id Price
1 Rs.210
2 Rs.150
3 Rs. 110
4 Rs.260
5 Rs.100
Product_id Colour
1 Black
1 Red
2 Green
3 Red
4 Green
4 Blue
5 Black
Second Normal Form (2NF)
A table is said to be in 2NF if both the following conditions hold:
 Table is in 1NF (First normal form)
 No non-prime attribute is dependent on the proper subset of any candidate
key of table.
An attribute that is not part of any candidate key is known as non-prime
attribute.
SECOND NORMAL FORM
Table purchase detail
Customer_id Store_id Location
1 1 Patna
1 3 Noida
2 1 Patna
3 2 Delhi
4 3 Noida
 This table has a composite primary
key i.e. customer id, store id. The
non key attribute is location. In
this case location depends on store
id, which is part of the primary
key.
After decomposing it into second normal
form it looks like:
Table Purchase
Customer_id Store_id
1 1
1 3
2 1
3 2
4 3
Table Store
Store_id Location
1 Patna
2 Delhi
3 Noida
Third Normal Form (3NF)
A table design is said to be in 3NF if both the following conditions hold:
 Table must be in 2NF
 Transitive functional dependency of non-prime attribute on any super key should
be removed.
An attribute that is not part of any candidate key is known as non-prime attribute.
In other words 3NF can be explained like this: A table is in 3NF if it is in 2NF and for
each functional dependency X-> Y at least one of the following conditions hold:
 X is a super key of table
 Y is a prime attribute of table
An attribute that is a part of one of the candidate keys is known as prime attribute.
THIRD NORMAL FORM
Table Book Details
Bood_id Genre_id Genre
type
Price
1 1 Fiction 100
2 2 Sports 110
3 1 Fiction 120
4 3 Travel 130
5 2 sports 140
 In the table, book_id determines
genre_id and genre_id determines
genre type. Therefore book_idd
determines genre type via genre_id
and we have transitive functional
dependency.
After decomposing it into third normal
form it looks like:
TABLE BOOK
Book_id Genre_id Price
1 1 100
2 2 110
3 1 120
4 3 130
5 2 140
TABLE GENRE
Genre_id Genre type
1 Fiction
2 Sports
3 Travel
Boyce-Codd Normal Form (BCNF)
 It is an advance version of 3NF that’s why it is also referred as 3.5NF. BCNF is
stricter than 3NF. A table complies with BCNF if it is in 3NF and for every
functional dependency X->Y, X should be the super key of the table.
Boyce-Codd Normal Form
Student Course Teacher
Aman DBMS AYUSH
Aditya DBMS RAJ
Abhinav E-COMM RAHUL
Aman E-COMM RAHUL
abhinav DBMS RAJ
 KEY: {Student, Course}
 Functional dependency
{student, course} -> Teacher
Teacher-> Course
 Problem: teacher is not superkey
but determines course.
After decomposing it into Boyce-Codd
normal form it looks like:
Student Course
Aman DBMS
Aditya DBMS
Abhinav E-COMM
Aman E-COMM
Abhinav DBMS
Course Teacher
DBMS AYUSH
DBMS RAJ
E-COMM RAHUL
Fourth Normal Form (4NF)
 Fourth normal form (4NF) is a level of database normalization where there
are no non-trivial multivalued dependencies other than a candidate key.
It builds on the first three normal forms (1NF, 2NF and 3NF) and the Boyce-
Codd Normal Form (BCNF). It states that, in addition to a database meeting
the requirements of BCNF, it must not contain more than one multivalued
dependency.
FOURTH NORMAL FORM
Student Major Hobby
Aman Management Football
Aman Management Cricket
Raj Management Football
Raj Medical Football
Ram Management Cricket
Aditya Btech Football
Abhinav Btech Cricket
 Key: {students, major, hobby}
 MVD: ->-> Major, hobby
After decomposing it into fourth normal
form it looks like:
Student Major
Aman Management
Raj Management
Raj Medical
Ram Management
Aditya Btech
Abhinav Btech
Student Hobby
Aman Football
Aman Cricket
Raj Football
Ram Cricket
Aditya Football
Abhinav Cricket
Fifth Normal Form (5NF)
A database is said to be in 5NF, if and only if,
 It's in 4NF.
 If we can decompose table further to eliminate redundancy and anomaly, and
when we re-join the decomposed tables by means of candidate keys, we
should not be losing the original data or any new record set should not arise.
In simple words, joining two or more decomposed table should not lose
records nor create new records.
FIFTH NORMAL FORM
Seller Company Product
Aman Coca cola
company
Thumps Up
Aditya Unilever Ponds
Aditya Unilever Axe
Aditya Uniliver Lakme
Abhinav P&G Vicks
Abhinav Pepsico Pepsi
 Key: {seller, company, product}
 MVD: Seller ->-> Company, product
Product is related to company.
After decomposing it into fifth normal
form it looks like:
Continued in next slide…
Seller Product
Aman Thumps Up
Aditya Ponds
Aditya Axe
Aditya Lakme
Abhinav Vicks
Abhinav Pepsi
Seller Company
Aman Coca cola
company
Aditya Unilever
Abhinav P&G
Abhinav Pepsico
Company Product
Coca cola company Thumps Up
Unilever Ponds
Unilever Axe
Unilever Lakme
Pepsico Pepsi
P&G Vicks
Normalization in DBMS
Ad

More Related Content

What's hot (20)

Data Models
Data ModelsData Models
Data Models
RituBhargava7
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
madhav bansal
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
BIT Durg
 
PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts
Bharat Kalia
 
Joins in SQL
Joins in SQLJoins in SQL
Joins in SQL
Vigneshwaran Sankaran
 
Java package
Java packageJava package
Java package
CS_GDRCST
 
joins in database
 joins in database joins in database
joins in database
Sultan Arshad
 
Sql ppt
Sql pptSql ppt
Sql ppt
Anuja Lad
 
Er model ppt
Er model pptEr model ppt
Er model ppt
Pihu Goel
 
Basics of Object Oriented Programming in Python
Basics of Object Oriented Programming in PythonBasics of Object Oriented Programming in Python
Basics of Object Oriented Programming in Python
Sujith Kumar
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
OECLIB Odisha Electronics Control Library
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
koolkampus
 
Constructor in java
Constructor in javaConstructor in java
Constructor in java
Pavith Gunasekara
 
Deadlock ppt
Deadlock ppt Deadlock ppt
Deadlock ppt
Sweetestangel Kochar
 
serializability in dbms
serializability in dbmsserializability in dbms
serializability in dbms
Saranya Natarajan
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
Shakila Mahjabin
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
Chirag vasava
 
Data structure & its types
Data structure & its typesData structure & its types
Data structure & its types
Rameesha Sadaqat
 
Linked list
Linked listLinked list
Linked list
akshat360
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
daxesh chauhan
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
madhav bansal
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
BIT Durg
 
PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts
Bharat Kalia
 
Java package
Java packageJava package
Java package
CS_GDRCST
 
Er model ppt
Er model pptEr model ppt
Er model ppt
Pihu Goel
 
Basics of Object Oriented Programming in Python
Basics of Object Oriented Programming in PythonBasics of Object Oriented Programming in Python
Basics of Object Oriented Programming in Python
Sujith Kumar
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
koolkampus
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
Shakila Mahjabin
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
Chirag vasava
 
Data structure & its types
Data structure & its typesData structure & its types
Data structure & its types
Rameesha Sadaqat
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
daxesh chauhan
 

Viewers also liked (20)

Normalization
NormalizationNormalization
Normalization
Salman Memon
 
Dbms normalization
Dbms normalizationDbms normalization
Dbms normalization
Pratik Devmurari
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
Roshni Singh
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
Lecture 04 normalization
Lecture 04 normalization Lecture 04 normalization
Lecture 04 normalization
emailharmeet
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
rahulrathore725
 
Functional dependency
Functional dependencyFunctional dependency
Functional dependency
Tamajit Chakraborty
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
Afrasiyab Haider
 
Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
Ehsan Hamzei
 
Dbms models
Dbms modelsDbms models
Dbms models
devgocool
 
DBMS - Normalization
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
Jitendra Tomar
 
OSI Model
OSI ModelOSI Model
OSI Model
Rahul Bandhe
 
DBMS Lecture 8 - Normalization
DBMS Lecture 8 - NormalizationDBMS Lecture 8 - Normalization
DBMS Lecture 8 - Normalization
Ericka Tagarda
 
1 fn dependency
1 fn dependency1 fn dependency
1 fn dependency
Mr Patrick NIYISHAKA
 
Normalization
NormalizationNormalization
Normalization
vinayakanegundi
 
Multivalued dependency
Multivalued dependencyMultivalued dependency
Multivalued dependency
avniS
 
b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data Model
Dimara Hakim
 
Shashi DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi  DATABASE FUNCTIONAL DEPENDENCY QUESTIONShashi  DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi Kumar
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
Bishrul Haq
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
Roshni Singh
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
Lecture 04 normalization
Lecture 04 normalization Lecture 04 normalization
Lecture 04 normalization
emailharmeet
 
Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
Ehsan Hamzei
 
DBMS Lecture 8 - Normalization
DBMS Lecture 8 - NormalizationDBMS Lecture 8 - Normalization
DBMS Lecture 8 - Normalization
Ericka Tagarda
 
Multivalued dependency
Multivalued dependencyMultivalued dependency
Multivalued dependency
avniS
 
b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data Model
Dimara Hakim
 
Shashi DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi  DATABASE FUNCTIONAL DEPENDENCY QUESTIONShashi  DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi Kumar
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
Bishrul Haq
 
Ad

Similar to Normalization in DBMS (20)

1-161103092724.pptx
1-161103092724.pptx1-161103092724.pptx
1-161103092724.pptx
YashaswiniSrinivasan1
 
Normalization and its various types in DBMS
Normalization and its various types in DBMSNormalization and its various types in DBMS
Normalization and its various types in DBMS
Shouvic Banik0139
 
Normalization and its various types in DBMS
Normalization and its various types in DBMSNormalization and its various types in DBMS
Normalization and its various types in DBMS
Shouvic Banik0139
 
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
wrushabhsirsat
 
Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...
Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...
Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...
Simplilearn
 
Database Basics
Database BasicsDatabase Basics
Database Basics
HripsimeGhaltaghchya
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Vaibhav Kathuria
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Jignesh Jain
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced Normalization
Abdullah Khosa
 
Presentation on Normalization.pptx
Presentation on Normalization.pptxPresentation on Normalization.pptx
Presentation on Normalization.pptx
kshipra sony
 
Types of normalization
Types of normalizationTypes of normalization
Types of normalization
PratibhaRashmiSingh
 
Database Normalization.pptx
Database Normalization.pptxDatabase Normalization.pptx
Database Normalization.pptx
Green University of Bangladesh
 
Learn Normalization in simple language
Learn Normalization in simple languageLearn Normalization in simple language
Learn Normalization in simple language
FirstWire Apps
 
Jai dbms
Jai dbmsJai dbms
Jai dbms
JAI BAMORIYA
 
429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx
429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx
429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx
Harmanjot5678
 
Normalization in relational database management systems
Normalization in relational database management systemsNormalization in relational database management systems
Normalization in relational database management systems
Preethi T G
 
Chuẩn hóa CSDL
Chuẩn hóa CSDLChuẩn hóa CSDL
Chuẩn hóa CSDL
phananhvu
 
Bcnf
BcnfBcnf
Bcnf
baabtra.com - No. 1 supplier of quality freshers
 
Data normailazation
Data normailazationData normailazation
Data normailazation
Lalit Kale
 
Normalization
NormalizationNormalization
Normalization
Altafsoomro
 
Normalization and its various types in DBMS
Normalization and its various types in DBMSNormalization and its various types in DBMS
Normalization and its various types in DBMS
Shouvic Banik0139
 
Normalization and its various types in DBMS
Normalization and its various types in DBMSNormalization and its various types in DBMS
Normalization and its various types in DBMS
Shouvic Banik0139
 
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
wrushabhsirsat
 
Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...
Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...
Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...
Simplilearn
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Jignesh Jain
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced Normalization
Abdullah Khosa
 
Presentation on Normalization.pptx
Presentation on Normalization.pptxPresentation on Normalization.pptx
Presentation on Normalization.pptx
kshipra sony
 
Learn Normalization in simple language
Learn Normalization in simple languageLearn Normalization in simple language
Learn Normalization in simple language
FirstWire Apps
 
429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx
429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx
429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx
Harmanjot5678
 
Normalization in relational database management systems
Normalization in relational database management systemsNormalization in relational database management systems
Normalization in relational database management systems
Preethi T G
 
Chuẩn hóa CSDL
Chuẩn hóa CSDLChuẩn hóa CSDL
Chuẩn hóa CSDL
phananhvu
 
Data normailazation
Data normailazationData normailazation
Data normailazation
Lalit Kale
 
Ad

Recently uploaded (20)

Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 

Normalization in DBMS

  • 1. NORMALIZATION & TYPES OF NORMALIZATION
  • 2. 1) DEFINE NORMALIZATION Normalization can be defined as :-  A process of organizing the data in database to avoid data redundancy, insertion anomaly, update anomaly & deletion anomaly. • A process of organizing data into tables in such a way that the results of using the database are always unambiguous and as intended. Such normalization is intrinsic to relational database theory. It may have the effect of duplicating data within the database and often results in the creation of additional tables.
  • 3. Types of normalization  First Normal Form (1NF)  Second Normal Form (2NF)  Third Normal Form (3NF)  Boyce-Codd Normal Form (BCNF)  Fourth Normal Form (4NF)  Fifth Normal Form (5NF)
  • 4. First Normal Form (1NF) First normal form enforces these criteria:  Eliminate repeating groups in individual tables.  Create a separate table for each set of related data.  Identify each set of related data with a primary key
  • 5. First Normal Form Table_Product Product Id Colour Price 1 Black, red Rs.210 2 Green Rs.150 3 Red Rs. 110 4 Green, blue Rs.260 5 Black Rs.100 This table is not in first normal form because the “Colour” column contains multiple Values.
  • 6. After decomposing it into first normal form it looks like: Product_id Price 1 Rs.210 2 Rs.150 3 Rs. 110 4 Rs.260 5 Rs.100 Product_id Colour 1 Black 1 Red 2 Green 3 Red 4 Green 4 Blue 5 Black
  • 7. Second Normal Form (2NF) A table is said to be in 2NF if both the following conditions hold:  Table is in 1NF (First normal form)  No non-prime attribute is dependent on the proper subset of any candidate key of table. An attribute that is not part of any candidate key is known as non-prime attribute.
  • 8. SECOND NORMAL FORM Table purchase detail Customer_id Store_id Location 1 1 Patna 1 3 Noida 2 1 Patna 3 2 Delhi 4 3 Noida  This table has a composite primary key i.e. customer id, store id. The non key attribute is location. In this case location depends on store id, which is part of the primary key.
  • 9. After decomposing it into second normal form it looks like: Table Purchase Customer_id Store_id 1 1 1 3 2 1 3 2 4 3 Table Store Store_id Location 1 Patna 2 Delhi 3 Noida
  • 10. Third Normal Form (3NF) A table design is said to be in 3NF if both the following conditions hold:  Table must be in 2NF  Transitive functional dependency of non-prime attribute on any super key should be removed. An attribute that is not part of any candidate key is known as non-prime attribute. In other words 3NF can be explained like this: A table is in 3NF if it is in 2NF and for each functional dependency X-> Y at least one of the following conditions hold:  X is a super key of table  Y is a prime attribute of table An attribute that is a part of one of the candidate keys is known as prime attribute.
  • 11. THIRD NORMAL FORM Table Book Details Bood_id Genre_id Genre type Price 1 1 Fiction 100 2 2 Sports 110 3 1 Fiction 120 4 3 Travel 130 5 2 sports 140  In the table, book_id determines genre_id and genre_id determines genre type. Therefore book_idd determines genre type via genre_id and we have transitive functional dependency.
  • 12. After decomposing it into third normal form it looks like: TABLE BOOK Book_id Genre_id Price 1 1 100 2 2 110 3 1 120 4 3 130 5 2 140 TABLE GENRE Genre_id Genre type 1 Fiction 2 Sports 3 Travel
  • 13. Boyce-Codd Normal Form (BCNF)  It is an advance version of 3NF that’s why it is also referred as 3.5NF. BCNF is stricter than 3NF. A table complies with BCNF if it is in 3NF and for every functional dependency X->Y, X should be the super key of the table.
  • 14. Boyce-Codd Normal Form Student Course Teacher Aman DBMS AYUSH Aditya DBMS RAJ Abhinav E-COMM RAHUL Aman E-COMM RAHUL abhinav DBMS RAJ  KEY: {Student, Course}  Functional dependency {student, course} -> Teacher Teacher-> Course  Problem: teacher is not superkey but determines course.
  • 15. After decomposing it into Boyce-Codd normal form it looks like: Student Course Aman DBMS Aditya DBMS Abhinav E-COMM Aman E-COMM Abhinav DBMS Course Teacher DBMS AYUSH DBMS RAJ E-COMM RAHUL
  • 16. Fourth Normal Form (4NF)  Fourth normal form (4NF) is a level of database normalization where there are no non-trivial multivalued dependencies other than a candidate key. It builds on the first three normal forms (1NF, 2NF and 3NF) and the Boyce- Codd Normal Form (BCNF). It states that, in addition to a database meeting the requirements of BCNF, it must not contain more than one multivalued dependency.
  • 17. FOURTH NORMAL FORM Student Major Hobby Aman Management Football Aman Management Cricket Raj Management Football Raj Medical Football Ram Management Cricket Aditya Btech Football Abhinav Btech Cricket  Key: {students, major, hobby}  MVD: ->-> Major, hobby
  • 18. After decomposing it into fourth normal form it looks like: Student Major Aman Management Raj Management Raj Medical Ram Management Aditya Btech Abhinav Btech Student Hobby Aman Football Aman Cricket Raj Football Ram Cricket Aditya Football Abhinav Cricket
  • 19. Fifth Normal Form (5NF) A database is said to be in 5NF, if and only if,  It's in 4NF.  If we can decompose table further to eliminate redundancy and anomaly, and when we re-join the decomposed tables by means of candidate keys, we should not be losing the original data or any new record set should not arise. In simple words, joining two or more decomposed table should not lose records nor create new records.
  • 20. FIFTH NORMAL FORM Seller Company Product Aman Coca cola company Thumps Up Aditya Unilever Ponds Aditya Unilever Axe Aditya Uniliver Lakme Abhinav P&G Vicks Abhinav Pepsico Pepsi  Key: {seller, company, product}  MVD: Seller ->-> Company, product Product is related to company.
  • 21. After decomposing it into fifth normal form it looks like: Continued in next slide… Seller Product Aman Thumps Up Aditya Ponds Aditya Axe Aditya Lakme Abhinav Vicks Abhinav Pepsi Seller Company Aman Coca cola company Aditya Unilever Abhinav P&G Abhinav Pepsico
  • 22. Company Product Coca cola company Thumps Up Unilever Ponds Unilever Axe Unilever Lakme Pepsico Pepsi P&G Vicks