SlideShare a Scribd company logo
7
Most read
9
Most read
11
Most read
1st, 2nd, and 3rd
Normal Forms
By
Carlos Alvarado
San Jose State University
Overview
 Today we’ll talk about:
 Database Normalization
 Data Anomalies Caused by:
 Update, Insertion, Deletion
 Brief History/Overview
 1st Normal Form
 2nd Normal Form
 3rd Normal Form
 Conclusion
Database Normalization
 The main goal of Database Normalization
is to restructure the logical data model of
a database to:
 Eliminate redundancy
 Organize data efficiently
 Reduce the potential for data anomalies.
Data Anomalies
 Data anomalies are inconsistencies in the data
stored in a database as a result of an operation
such as update, insertion, and/or deletion.
 Such inconsistencies may arise when have a
particular record stored in multiple locations and
not all of the copies are updated.
 We can prevent such anomalies by implementing
7 different level of normalization called Normal
Forms (NF)
 We’ll only look at the first three. 
Brief History/Overview
 Database Normalization was first proposed by Edgar F.
Codd.
 Codd defined the first three Normal Forms, which we’ll
look into, of the 7 known Normal Forms.
 In order to do normalization we must know what the
requirements are for each of the three Normal Forms
that we’ll go over.
 One of the key requirements to remember is that Normal
Forms are progressive. That is, in order to have 3rd NF
we must have 2nd NF and in order to have 2nd NF we
must have 1st NF.
1st Normal Form
The Requirements
 The requirements to satisfy the 1st NF:
 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 Normal Form
Example
Un-normalized Students table:
Normalized Students table:
Student# AdvID AdvName AdvRoom Class1 Class2
123 123A James 555 102-8 104-9
124 123B Smith 467 209-0 102-8
Student# AdvID AdvName AdvRoom Class#
123 123A James 555 102-8
123 123A James 555 104-9
124 123B Smith 467 209-0
124 123B Smith 467 102-8
2nd Normal Form
The Requirements
 The requirements to satisfy the 2nd NF:
 All requirements for 1st NF must be met.
 Redundant data across multiple rows of a
table must be moved to a separate table.
 The resulting tables must be related to each other
by use of foreign key.
2nd Normal Form
Example
Students table
Registration table
Student# AdvID AdvName AdvRoom
123 123A James 555
124 123B Smith 467
Student# Class#
123 102-8
123 104-9
124 209-0
124 102-8
3rd Normal Form
The Requirements
 The requirements to satisfy the 3rd NF:
 All requirements for 2nd NF must be met.
 Eliminate fields that do not depend on the
primary key;
 That is, any field that is dependent not only on the
primary key but also on another field must be
moved to another table.
3rd Normal Form
Example
Students table:
Student table: Advisor table:
Student# AdvID AdvName AdvRoom
123 123A James 555
124 123B Smith 467
Student# AdvID
123 123A
124 123B
AdvID AdvName AdvRoom
123A James 555
123B Smith 467
3rd Normal Form
Example Cont.
Students table:
Registration table: Advisor table:
Student# Class#
123 102-8
123 104-9
124 209-0
124 102-8
AdvID AdvName AdvRoom
123A James 555
123B Smith 467
Student# AdvID
123 123A
124 123B
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.
References
 Hillyer Mike, MySQL AB. An Introduction to Database Normalization,
http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html,
accessed October 17, 2006.
 Microsoft. Description of the database normalization basics,
http://support.microsoft.com/kb/283878 , accessed October 17, 2006.
 Wikipedia. Database Normalization.
http://en.wikipedia.org/wiki/Database_normalization.html , accessed
October 17, 2006.

More Related Content

PDF
Normalization in SQL | Edureka
PPT
Normalization
PPTX
Normalization 1 nf,2nf,3nf,bcnf
PDF
chapter 4-Functional Dependency and Normilization.pdf
PPT
Normalization case
PPT
Normalization PRESENTATION
Normalization in SQL | Edureka
Normalization
Normalization 1 nf,2nf,3nf,bcnf
chapter 4-Functional Dependency and Normilization.pdf
Normalization case
Normalization PRESENTATION

What's hot (20)

PPTX
database Normalization
PPT
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
PPTX
Integrity Constraints
PPTX
Functional dependencies in Database Management System
PDF
Normalization in DBMS
PPTX
Learn Normalization in simple language
PPT
Databases: Normalisation
PPTX
Integrity Constraints
PPTX
Functional dependancy
PPTX
Query processing and Query Optimization
PPTX
Normal forms
PPTX
2 phase locking protocol DBMS
PPTX
PPTX
Database Normalization - First, second and Third Normal Forms with an example
PDF
Database Normalization
DOCX
Joins in dbms and types
PPT
Normalisation - 2nd normal form
PPTX
Normalization in RDBMS
PPTX
Introduction to database
database Normalization
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Integrity Constraints
Functional dependencies in Database Management System
Normalization in DBMS
Learn Normalization in simple language
Databases: Normalisation
Integrity Constraints
Functional dependancy
Query processing and Query Optimization
Normal forms
2 phase locking protocol DBMS
Database Normalization - First, second and Third Normal Forms with an example
Database Normalization
Joins in dbms and types
Normalisation - 2nd normal form
Normalization in RDBMS
Introduction to database
Ad

Similar to normalization-1nf-to-3nf-with-same-example.ppt (20)

PPTX
Normal forms in DBMS1st Normal Form 2nd Normal Form 3rd Normal Form
PPT
Roja128
PDF
1683368767418684.pdf
PPTX
databaess.pptx
PPTX
Database Normalization a topic of data base for BS program and others.
PDF
Assignment#11
DOCX
Research gadot
PPT
Normalization
PDF
What is Database NormalizationExplain the guidelines for ensuring t.pdf
PPTX
Lecture 6.pptx
PPTX
2NF_3NF_RDBMS_Assignment-for-rdbms-btech.pptx
PPTX
Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...
PPTX
Normalization
PPTX
Normalisation
PPTX
2 normalization
DOCX
Normalization
PDF
Advanced Normalization
PPTX
Normalization.pptx
PPTX
Database Normalization.pptx
PPT
Normalization Accepted
Normal forms in DBMS1st Normal Form 2nd Normal Form 3rd Normal Form
Roja128
1683368767418684.pdf
databaess.pptx
Database Normalization a topic of data base for BS program and others.
Assignment#11
Research gadot
Normalization
What is Database NormalizationExplain the guidelines for ensuring t.pdf
Lecture 6.pptx
2NF_3NF_RDBMS_Assignment-for-rdbms-btech.pptx
Database Normalization 1NF 2NF 3NF | What is Normalisation in SQL | Normalisa...
Normalization
Normalisation
2 normalization
Normalization
Advanced Normalization
Normalization.pptx
Database Normalization.pptx
Normalization Accepted
Ad

Recently uploaded (20)

PPTX
GDM (1) (1).pptx small presentation for students
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Lesson notes of climatology university.
PPTX
Cell Types and Its function , kingdom of life
PPTX
master seminar digital applications in india
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
RMMM.pdf make it easy to upload and study
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Pharma ospi slides which help in ospi learning
GDM (1) (1).pptx small presentation for students
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
O5-L3 Freight Transport Ops (International) V1.pdf
Insiders guide to clinical Medicine.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Final Presentation General Medicine 03-08-2024.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Lesson notes of climatology university.
Cell Types and Its function , kingdom of life
master seminar digital applications in india
Renaissance Architecture: A Journey from Faith to Humanism
Microbial diseases, their pathogenesis and prophylaxis
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
RMMM.pdf make it easy to upload and study
102 student loan defaulters named and shamed – Is someone you know on the list?
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pharma ospi slides which help in ospi learning

normalization-1nf-to-3nf-with-same-example.ppt

  • 1. 1st, 2nd, and 3rd Normal Forms By Carlos Alvarado San Jose State University
  • 2. Overview  Today we’ll talk about:  Database Normalization  Data Anomalies Caused by:  Update, Insertion, Deletion  Brief History/Overview  1st Normal Form  2nd Normal Form  3rd Normal Form  Conclusion
  • 3. Database Normalization  The main goal of Database Normalization is to restructure the logical data model of a database to:  Eliminate redundancy  Organize data efficiently  Reduce the potential for data anomalies.
  • 4. Data Anomalies  Data anomalies are inconsistencies in the data stored in a database as a result of an operation such as update, insertion, and/or deletion.  Such inconsistencies may arise when have a particular record stored in multiple locations and not all of the copies are updated.  We can prevent such anomalies by implementing 7 different level of normalization called Normal Forms (NF)  We’ll only look at the first three. 
  • 5. Brief History/Overview  Database Normalization was first proposed by Edgar F. Codd.  Codd defined the first three Normal Forms, which we’ll look into, of the 7 known Normal Forms.  In order to do normalization we must know what the requirements are for each of the three Normal Forms that we’ll go over.  One of the key requirements to remember is that Normal Forms are progressive. That is, in order to have 3rd NF we must have 2nd NF and in order to have 2nd NF we must have 1st NF.
  • 6. 1st Normal Form The Requirements  The requirements to satisfy the 1st NF:  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 Normal Form Example Un-normalized Students table: Normalized Students table: Student# AdvID AdvName AdvRoom Class1 Class2 123 123A James 555 102-8 104-9 124 123B Smith 467 209-0 102-8 Student# AdvID AdvName AdvRoom Class# 123 123A James 555 102-8 123 123A James 555 104-9 124 123B Smith 467 209-0 124 123B Smith 467 102-8
  • 8. 2nd Normal Form The Requirements  The requirements to satisfy the 2nd NF:  All requirements for 1st NF must be met.  Redundant data across multiple rows of a table must be moved to a separate table.  The resulting tables must be related to each other by use of foreign key.
  • 9. 2nd Normal Form Example Students table Registration table Student# AdvID AdvName AdvRoom 123 123A James 555 124 123B Smith 467 Student# Class# 123 102-8 123 104-9 124 209-0 124 102-8
  • 10. 3rd Normal Form The Requirements  The requirements to satisfy the 3rd NF:  All requirements for 2nd NF must be met.  Eliminate fields that do not depend on the primary key;  That is, any field that is dependent not only on the primary key but also on another field must be moved to another table.
  • 11. 3rd Normal Form Example Students table: Student table: Advisor table: Student# AdvID AdvName AdvRoom 123 123A James 555 124 123B Smith 467 Student# AdvID 123 123A 124 123B AdvID AdvName AdvRoom 123A James 555 123B Smith 467
  • 12. 3rd Normal Form Example Cont. Students table: Registration table: Advisor table: Student# Class# 123 102-8 123 104-9 124 209-0 124 102-8 AdvID AdvName AdvRoom 123A James 555 123B Smith 467 Student# AdvID 123 123A 124 123B
  • 13. 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.
  • 14. References  Hillyer Mike, MySQL AB. An Introduction to Database Normalization, http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html, accessed October 17, 2006.  Microsoft. Description of the database normalization basics, http://support.microsoft.com/kb/283878 , accessed October 17, 2006.  Wikipedia. Database Normalization. http://en.wikipedia.org/wiki/Database_normalization.html , accessed October 17, 2006.