SlideShare a Scribd company logo
2
Most read
3
Most read
8
Most read
Normalization
NORMALIZATION
 If a database design is not perfect, it may contain anomalies, which are like a bad dream for
any database administrator. Managing a database with anomalies is next to impossible.
 Update anomalies − If data items are scattered and are not linked to each other properly,
then it could lead to strange situations. For example, when we try to update one data item
having its copies scattered over several places, a few instances get updated properly while a
few others are left with old values. Such instances leave the database in an inconsistent state.
 Deletion anomalies − We tried to delete a record, but parts of it was left undeleted because
of unawareness, the data is also saved somewhere else.
 Insert anomalies − We tried to insert data in a record that does not exist at all.
 Normalization is a method to remove all these anomalies and bring the database to a
consistent state.
1NF (FIRST NORMAL FORM)
 First Normal Form is defined in the definition of relations (tables) itself. This rule
defines that all the attributes in a relation must have atomic domains. The values in
an atomic domain are indivisible units.
 We re-arrange the relation (table) as below, to convert it to First Normal Form.
 Each attribute must contain only a single value from its pre-defined domain.
2NF(SECOND NORMAL FORM)
 Before we learn about the second normal form, we need to understand the
following −
Prime attribute − An attribute, which is a part of the prime-key, is
known as a prime attribute.
Non-prime attribute − An attribute, which is not a part of the prime
key, is said to be a non-prime attribute.
 If we follow second normal form, then every non-prime attribute should be fully
functionally dependent on prime key attribute.
 That is, if X → A holds, then there should not be any proper subset Y of X, for
which Y → A also holds true.
2NF(SECOND NORMAL FORM)(COUNT.)
 We see here in Student_Project relation that the prime key attributes are Stu_ID and
Proj_ID.
 According to the rule, non-key attributes, i.e. Stu_Name and Proj_Name must be dependent
upon both and not on any of the prime key attribute individually.
 But we find that Stu_Name can be identified by Stu_ID and Proj_Name can be identified
by Proj_ID independently.
 This is calledpartial dependency, which is not allowed in Second Normal Form.
2NF(SECOND NORMAL FORM)(COUNT.)
 We broke the relation in two as depicted in the above picture. So there exists no
partial dependency.
3NF(THIRD NORMAL FORM)
 For a relation to be in Third Normal Form, it must be in Second Normal form and
the following must satisfy −
 No non-prime attribute is transitively dependent on prime key attribute.
 For any non-trivial functional dependency, X → A, then either −
 X is a super key or,
 A is prime attribute.
3NF(THIRD NORMAL FORM)(COUNT.)
 We find that in the above Student_detail relation, Stu_ID is the key and only prime
key attribute.
 We find that City can be identified by Stu_ID as well as Zip itself. Neither Zip is a
superkey nor is City a prime attribute.
 Additionally, Stu_ID → Zip → City, so there exists transitive dependency.
 To bring this relation into third normal form, we break the relation into two
relations as follows −
BCNF(BOYCE- CODD NORMAL FORM)
 Boyce-Codd Normal Form (BCNF) is an extension of Third Normal Form on strict
terms. BCNF states that −
 For any non-trivial functional dependency, X → A, X must be a super-key.
 In the above image, Stu_ID is the super-key in the relation Student_Detail and Zip
is the super-key in the relation ZipCodes. So,
 Stu_ID → Stu_Name, Zip
and
 Zip → City
 Which confirms that both the relations are in BCNF.
THANKYOU

More Related Content

PPTX
Normalization in DBMS
PPTX
Functional dependencies in Database Management System
PDF
Database Systems - Normalization of Relations(Chapter 4/3)
PDF
Database Normalization
PPTX
Database constraints
PPTX
Functional dependency
PPTX
Learn Normalization in simple language
PPTX
Normalization
Normalization in DBMS
Functional dependencies in Database Management System
Database Systems - Normalization of Relations(Chapter 4/3)
Database Normalization
Database constraints
Functional dependency
Learn Normalization in simple language
Normalization

What's hot (20)

PPT
Databases: Normalisation
PPT
Transactions in dbms
PPTX
Data Warehouse Fundamentals
PPT
Lossless decomposition
PPT
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
PPTX
Normal forms
PPT
Normalization
PPTX
Relational model
PDF
Normalization in SQL | Edureka
PDF
Normalization in DBMS
PPTX
Functional dependencies and normalization
PPTX
Functional dependancy
PDF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
PPTX
Transaction management DBMS
PPTX
Database Management System, Lecture-1
PPTX
Normalization
PPT
Database Management System Introduction
PPT
Database Chapter 3
Databases: Normalisation
Transactions in dbms
Data Warehouse Fundamentals
Lossless decomposition
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Normal forms
Normalization
Relational model
Normalization in SQL | Edureka
Normalization in DBMS
Functional dependencies and normalization
Functional dependancy
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Transaction management DBMS
Database Management System, Lecture-1
Normalization
Database Management System Introduction
Database Chapter 3
Ad

Viewers also liked (20)

PPTX
Normalization in DBMS
PDF
Database design & Normalization (1NF, 2NF, 3NF)
PDF
Normalization in Database
PPTX
Database Presentation
PPTX
DBMS Lecture 8 - Normalization
PPT
Multivalued dependency
PPTX
Normalization in a Database
PDF
Db normalization
PDF
Glossary of Agile Terms
PPTX
Functional dependencies and normalization for relational databases
PPTX
Concurrency control
PPT
Agile Scrum software methodology
PPTX
Routing Algorithm
PPTX
Database normalization
PPTX
Software Engineering Methodology
PPTX
Database - Normalization
PPTX
Database Normalization
PPT
Java awt
PPTX
RAID seminar
PPTX
VIRTUAL MEMORY
Normalization in DBMS
Database design & Normalization (1NF, 2NF, 3NF)
Normalization in Database
Database Presentation
DBMS Lecture 8 - Normalization
Multivalued dependency
Normalization in a Database
Db normalization
Glossary of Agile Terms
Functional dependencies and normalization for relational databases
Concurrency control
Agile Scrum software methodology
Routing Algorithm
Database normalization
Software Engineering Methodology
Database - Normalization
Database Normalization
Java awt
RAID seminar
VIRTUAL MEMORY
Ad

Similar to Dbms normalization (20)

PDF
Database normalization
PPTX
Database Normalisation
DOCX
Normalization
PPTX
database Normalization
PPTX
Normalization
PDF
Assignment#11
PDF
Impact of Normalization in Future
PPT
Normalization
PPTX
Introduction to Database (Field + Record).pptx
PPTX
Normalization in Relational database management systems
PPTX
Normalization in rdbms types and examples
PPTX
Normalization.pptx
DOCX
Research gadot
PPTX
Learn more about database normalization concepts
PDF
eaxmple of Normalisation
PDF
Normalization in DBMS
PPTX
Normalization and three normal forms.pptx
PPTX
chapter_8.pptx
DOCX
Normalization
PPTX
Database Design and Normalization Techniques
Database normalization
Database Normalisation
Normalization
database Normalization
Normalization
Assignment#11
Impact of Normalization in Future
Normalization
Introduction to Database (Field + Record).pptx
Normalization in Relational database management systems
Normalization in rdbms types and examples
Normalization.pptx
Research gadot
Learn more about database normalization concepts
eaxmple of Normalisation
Normalization in DBMS
Normalization and three normal forms.pptx
chapter_8.pptx
Normalization
Database Design and Normalization Techniques

Recently uploaded (20)

PDF
Sports Quiz easy sports quiz sports quiz
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Pharma ospi slides which help in ospi learning
PDF
Classroom Observation Tools for Teachers
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Complications of Minimal Access Surgery at WLH
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Basic Mud Logging Guide for educational purpose
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Institutional Correction lecture only . . .
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
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
Sports Quiz easy sports quiz sports quiz
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
human mycosis Human fungal infections are called human mycosis..pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharma ospi slides which help in ospi learning
Classroom Observation Tools for Teachers
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Complications of Minimal Access Surgery at WLH
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Basic Mud Logging Guide for educational purpose
GDM (1) (1).pptx small presentation for students
Institutional Correction lecture only . . .
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
VCE English Exam - Section C Student Revision Booklet
O5-L3 Freight Transport Ops (International) V1.pdf

Dbms normalization

  • 2. NORMALIZATION  If a database design is not perfect, it may contain anomalies, which are like a bad dream for any database administrator. Managing a database with anomalies is next to impossible.  Update anomalies − If data items are scattered and are not linked to each other properly, then it could lead to strange situations. For example, when we try to update one data item having its copies scattered over several places, a few instances get updated properly while a few others are left with old values. Such instances leave the database in an inconsistent state.  Deletion anomalies − We tried to delete a record, but parts of it was left undeleted because of unawareness, the data is also saved somewhere else.  Insert anomalies − We tried to insert data in a record that does not exist at all.  Normalization is a method to remove all these anomalies and bring the database to a consistent state.
  • 3. 1NF (FIRST NORMAL FORM)  First Normal Form is defined in the definition of relations (tables) itself. This rule defines that all the attributes in a relation must have atomic domains. The values in an atomic domain are indivisible units.  We re-arrange the relation (table) as below, to convert it to First Normal Form.  Each attribute must contain only a single value from its pre-defined domain.
  • 4. 2NF(SECOND NORMAL FORM)  Before we learn about the second normal form, we need to understand the following − Prime attribute − An attribute, which is a part of the prime-key, is known as a prime attribute. Non-prime attribute − An attribute, which is not a part of the prime key, is said to be a non-prime attribute.  If we follow second normal form, then every non-prime attribute should be fully functionally dependent on prime key attribute.  That is, if X → A holds, then there should not be any proper subset Y of X, for which Y → A also holds true.
  • 5. 2NF(SECOND NORMAL FORM)(COUNT.)  We see here in Student_Project relation that the prime key attributes are Stu_ID and Proj_ID.  According to the rule, non-key attributes, i.e. Stu_Name and Proj_Name must be dependent upon both and not on any of the prime key attribute individually.  But we find that Stu_Name can be identified by Stu_ID and Proj_Name can be identified by Proj_ID independently.  This is calledpartial dependency, which is not allowed in Second Normal Form.
  • 6. 2NF(SECOND NORMAL FORM)(COUNT.)  We broke the relation in two as depicted in the above picture. So there exists no partial dependency.
  • 7. 3NF(THIRD NORMAL FORM)  For a relation to be in Third Normal Form, it must be in Second Normal form and the following must satisfy −  No non-prime attribute is transitively dependent on prime key attribute.  For any non-trivial functional dependency, X → A, then either −  X is a super key or,  A is prime attribute.
  • 8. 3NF(THIRD NORMAL FORM)(COUNT.)  We find that in the above Student_detail relation, Stu_ID is the key and only prime key attribute.  We find that City can be identified by Stu_ID as well as Zip itself. Neither Zip is a superkey nor is City a prime attribute.  Additionally, Stu_ID → Zip → City, so there exists transitive dependency.  To bring this relation into third normal form, we break the relation into two relations as follows −
  • 9. BCNF(BOYCE- CODD NORMAL FORM)  Boyce-Codd Normal Form (BCNF) is an extension of Third Normal Form on strict terms. BCNF states that −  For any non-trivial functional dependency, X → A, X must be a super-key.  In the above image, Stu_ID is the super-key in the relation Student_Detail and Zip is the super-key in the relation ZipCodes. So,  Stu_ID → Stu_Name, Zip and  Zip → City  Which confirms that both the relations are in BCNF.