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

What's hot

Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
Damian T. Gordon
 
Normalization
NormalizationNormalization
Normalization
Salman Memon
 
File organization
File organizationFile organization
File organization
RituBhargava7
 
Normalization in SQL | Edureka
Normalization in SQL | EdurekaNormalization in SQL | Edureka
Normalization in SQL | Edureka
Edureka!
 
Dbms normalization
Dbms normalizationDbms normalization
Dbms normalization
Pratik Devmurari
 
2 phase locking protocol DBMS
2 phase locking protocol DBMS2 phase locking protocol DBMS
2 phase locking protocol DBMS
Dhananjaysinh Jhala
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Prateek Parimal
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL Commands
Shrija Madhu
 
Basic sql Commands
Basic sql CommandsBasic sql Commands
Basic sql Commands
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
Relational algebra
Relational algebraRelational algebra
Relational algebra
Dr. C.V. Suresh Babu
 
Stacks IN DATA STRUCTURES
Stacks IN DATA STRUCTURESStacks IN DATA STRUCTURES
Stacks IN DATA STRUCTURES
Sowmya Jyothi
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Vaibhav Kathuria
 
Normalization in databases
Normalization in databasesNormalization in databases
joins in database
 joins in database joins in database
joins in database
Sultan Arshad
 
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
 
Data Structures - Lecture 9 [Stack & Queue using Linked List]
 Data Structures - Lecture 9 [Stack & Queue using Linked List] Data Structures - Lecture 9 [Stack & Queue using Linked List]
Data Structures - Lecture 9 [Stack & Queue using Linked List]
Muhammad Hammad Waseem
 
Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)
yourbookworldanil
 
Normalization
NormalizationNormalization
Normalization
meet darji
 
Normalization PRESENTATION
Normalization PRESENTATIONNormalization PRESENTATION
Normalization PRESENTATION
bit allahabad
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
Sachidananda M H
 

What's hot (20)

Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Normalization
NormalizationNormalization
Normalization
 
File organization
File organizationFile organization
File organization
 
Normalization in SQL | Edureka
Normalization in SQL | EdurekaNormalization in SQL | Edureka
Normalization in SQL | Edureka
 
Dbms normalization
Dbms normalizationDbms normalization
Dbms normalization
 
2 phase locking protocol DBMS
2 phase locking protocol DBMS2 phase locking protocol DBMS
2 phase locking protocol DBMS
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL Commands
 
Basic sql Commands
Basic sql CommandsBasic sql Commands
Basic sql Commands
 
Relational algebra
Relational algebraRelational algebra
Relational algebra
 
Stacks IN DATA STRUCTURES
Stacks IN DATA STRUCTURESStacks IN DATA STRUCTURES
Stacks IN DATA STRUCTURES
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Normalization in databases
Normalization in databasesNormalization in databases
Normalization in databases
 
joins in database
 joins in database joins in database
joins in database
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
 
Data Structures - Lecture 9 [Stack & Queue using Linked List]
 Data Structures - Lecture 9 [Stack & Queue using Linked List] Data Structures - Lecture 9 [Stack & Queue using Linked List]
Data Structures - Lecture 9 [Stack & Queue using Linked List]
 
Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)
 
Normalization
NormalizationNormalization
Normalization
 
Normalization PRESENTATION
Normalization PRESENTATIONNormalization PRESENTATION
Normalization PRESENTATION
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
 

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

Database Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an exampleDatabase Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an example
SABITHARASSISTANTPRO
 
Roja128
Roja128Roja128
Roja128
meherdeepu
 
Normalisation and anomalies
Normalisation and anomaliesNormalisation and anomalies
normaliztion
normaliztionnormaliztion
normaliztion
Ramadhani S. Zuberi
 
Normalization
NormalizationNormalization
Normalization
Masud Parves
 
Database Normalization by Dr. Kamal Gulati
Database Normalization by Dr. Kamal GulatiDatabase Normalization by Dr. Kamal Gulati
normalization
normalizationnormalization
Normalization
NormalizationNormalization
Normalization
Shakila Mahjabin
 
Research gadot
Research gadotResearch gadot
Research gadot
Jotham Gadot
 
Assignment#11
Assignment#11Assignment#11
Assignment#11
Sunita Milind Dol
 
Normalization
NormalizationNormalization
Normalization
Altafsoomro
 
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptxI am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
istralthvi
 
Database Normalization.docx
Database Normalization.docxDatabase Normalization.docx
Database Normalization.docx
SHARMISTHAlearning
 
Normalization
NormalizationNormalization
Normalization
rishisingh190
 
Kumar lav
Kumar lavKumar lav
Kumar lav
kumar Lav
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced Normalization
Abdullah Khosa
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
A. S. M. Shafi
 
Normalization presentation in Database Management System
Normalization presentation in Database Management System Normalization presentation in Database Management System
Normalization presentation in Database Management System
Km Anik
 
Normalization
NormalizationNormalization
Normalization
Ramesh 4
 
Normalisation - 2nd normal form
Normalisation - 2nd normal formNormalisation - 2nd normal form
Normalisation - 2nd normal form
college
 

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

Database Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an exampleDatabase Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an example
 
Roja128
Roja128Roja128
Roja128
 
Normalisation and anomalies
Normalisation and anomaliesNormalisation and anomalies
Normalisation and anomalies
 
normaliztion
normaliztionnormaliztion
normaliztion
 
Normalization
NormalizationNormalization
Normalization
 
Database Normalization by Dr. Kamal Gulati
Database Normalization by Dr. Kamal GulatiDatabase Normalization by Dr. Kamal Gulati
Database Normalization by Dr. Kamal Gulati
 
normalization
normalizationnormalization
normalization
 
Normalization
NormalizationNormalization
Normalization
 
Research gadot
Research gadotResearch gadot
Research gadot
 
Assignment#11
Assignment#11Assignment#11
Assignment#11
 
Normalization
NormalizationNormalization
Normalization
 
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptxI am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
I am sharing 'DATABASE NORMALIZATION' with you - Copy.pptx
 
Database Normalization.docx
Database Normalization.docxDatabase Normalization.docx
Database Normalization.docx
 
Normalization
NormalizationNormalization
Normalization
 
Kumar lav
Kumar lavKumar lav
Kumar lav
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced Normalization
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
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
 
Normalisation - 2nd normal form
Normalisation - 2nd normal formNormalisation - 2nd normal form
Normalisation - 2nd normal form
 

Recently uploaded

World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 

Recently uploaded (20)

World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 

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.