SlideShare a Scribd company logo
1 of 18
3N Normalized Databases
MINISTÈRE DE L’ENSEIGNEMENT SUPÉRIEUR DE LA RECHERCHE SCIENTIFIQUE
UNIVERSITÉ TUNIS EL MANAR
‫بتونس‬ ‫للمهندسين‬ ‫الوطنية‬ ‫المدرسة‬
ÉCOLE NATIONALE D’INGÉNIEURS DE TUNIS
By:
Rami MAHJOUBA
Achraf CHEBIL
• Overview
 Introduction
 First Normal Form (1NF)
 Second Normal Form (2NF)
 Third Normal Form (3NF)
 Conclusion
• Introduction
 Organizing relations and attributes
 To improve data integrity
 Eliminate data redundancy
 Inappropriate functional dependencies
What is Normalization?
• Introduction
EDGARD F. CODD.
 Invented the relational model
 Introduced normalization
 Proposed 3 initial normal forms and the Boyce-Codd form
History overview
• Introduction
Initial Normal Forms
 First Normal Form (1NF)
 Second Normal Form (2NF)
 Third Normal Form (3NF)
• Introduction
Additional Normal Forms
 Boyce-Codd Normal Form (BCNF)
 Fourth Normal Form (4NF)
 Fifth Normal Form (5NF)
• First Normal Form (1NF)
 Data cannot be broken down further(atomic)
 Columns have no repeating/similar data
 Each row is unique
 Each field has a unique name
Rules For 1NF
• First Normal Form (1NF)
Original Invoice Table
Invoice Number Date Amount Customer ID Customer Name Item
125 09/15/2016 1000 17 Harry Potter Wand, Cloak
126 09/16/2016 150 21 Percy Jackson Bolt
127 09/16/2016 380 12 Katniss Everdeen Bow, Arrow
128 09/16/2016 850 17 Harry Potter Broom
Break Down
• First Normal Form (1NF)
Revised Invoice Table
Invoice Number Date Amount Customer ID Customer First Name Customer Last Name Item
125 09/15/2016 1000 17 Harry Potter Wand,
Cloak
126 09/16/2016 150 21 Percy Jackson Bolt
127 09/16/2016 380 12 Katniss Everdeen Bow,
Arrow
128 09/16/2016 850 17 Harry Potter Broom
Atomic
• First Normal Form (1NF)
Revised Invoice Table
Invoice
Number
Date Amount Customer ID Customer First Name Customer Last Name Item
125 09/15/2016 1000 17 Harry Potter Wand
125 09/15/2016 1000 17 Harry Potter Cloak
126 09/16/2016 150 21 Percy Jackson Bolt
127 09/16/2016 380 12 Katniss Everdeen Bow
127 09/16/2016 380 12 Katniss Everdeen Arrow
128 09/16/2016 850 17 Harry Potter Broom
No
Repeating
Data
Unique
Rows
• Second Normal Form (2NF)
 Should be in 1NF
 Non-key attributes are functional dependent on primary key
Rules For 2NF
• Second Normal Form (2NF)
1NF invoice table
Invoice
Number
Date Amount Customer ID Customer First Name Customer Last Name Item
125 09/15/2016 1000 17 Harry Potter Wand
125 09/15/2016 1000 17 Harry Potter Cloak
126 09/16/2016 150 21 Percy Jackson Bolt
127 09/16/2016 380 12 Katniss Everdeen Bow
127 09/16/2016 380 12 Katniss Everdeen Arrow
128 09/16/2016 850 17 Harry Potter Broom
Non-dependant
• Second Normal Form (2NF)
2NF invoice table + Invoice table
Invoice
Number
Date Amount Customer
ID
Customer
First Name
Customer Last Name
125 09/15/2016 1000 17 Harry Potter
126 09/16/2016 150 21 Percy Jackson
127 09/16/2016 380 12 Katniss Everdeen
128 09/16/2016 850 17 Harry Potter
Invoice
Number
Item
125 Wand
125 Cloak
126 Bolt
127 Bow
127 Arrow
128 Broom
Foreign Key
• Third Normal Form (3NF)
 Should be in 2NF
 No Transitive dependencies
Rules For 3NF
• Third Normal Form (3NF)
2NF invoice table
Invoice
Number
Date Amount Customer
ID
Customer
First Name
Customer Last Name
125 09/15/2016 1000 17 Harry Potter
126 09/16/2016 150 21 Percy Jackson
127 09/16/2016 380 12 Katniss Everdeen
128 09/16/2016 850 17 Harry Potter
Transitive dependency
X Y
Y Z
X Z
• Third Normal Form (3NF)
3NF invoice table + Customers table
Invoice
Number
Date Amount Customer
ID
125 09/15/2016 1000 17
126 09/16/2016 150 21
127 09/16/2016 380 12
128 09/16/2016 850 17
Customer
ID
Customer First
Name
Customer last
Name
17 Harry Potter
21 Percy Jackson
12 Katniss Everdeen
17 Harry Potter
Foreign Key
• Conclusion
We have seen how Database Normalization can:
 Decrease redundancy
 Increase efficiency
 Reduce anomalies
By implementing three of all the different levels of normalization called
Normal Forms. The first three NF’s are usually sufficient for most small
to medium size applications.
3N Normalized Databases.ppsx 3N Normalized Databases3N Normalized Databases

More Related Content

Recently uploaded

Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfJNTUA
 
engineering chemistry power point presentation
engineering chemistry  power point presentationengineering chemistry  power point presentation
engineering chemistry power point presentationsj9399037128
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...josephjonse
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docxrahulmanepalli02
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailingAshishSingh1301
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.benjamincojr
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisDr.Costas Sachpazis
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Studentskannan348865
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxMustafa Ahmed
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxkalpana413121
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxMustafa Ahmed
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...archanaece3
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological universityMohd Saifudeen
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxMustafa Ahmed
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Toolssoginsider
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsMathias Magdowski
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxCHAIRMAN M
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationEmaan Sharma
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksIJECEIAES
 

Recently uploaded (20)

Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
engineering chemistry power point presentation
engineering chemistry  power point presentationengineering chemistry  power point presentation
engineering chemistry power point presentation
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Students
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & Modernization
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networks
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

3N Normalized Databases.ppsx 3N Normalized Databases3N Normalized Databases

  • 1. 3N Normalized Databases MINISTÈRE DE L’ENSEIGNEMENT SUPÉRIEUR DE LA RECHERCHE SCIENTIFIQUE UNIVERSITÉ TUNIS EL MANAR ‫بتونس‬ ‫للمهندسين‬ ‫الوطنية‬ ‫المدرسة‬ ÉCOLE NATIONALE D’INGÉNIEURS DE TUNIS By: Rami MAHJOUBA Achraf CHEBIL
  • 2. • Overview  Introduction  First Normal Form (1NF)  Second Normal Form (2NF)  Third Normal Form (3NF)  Conclusion
  • 3. • Introduction  Organizing relations and attributes  To improve data integrity  Eliminate data redundancy  Inappropriate functional dependencies What is Normalization?
  • 4. • Introduction EDGARD F. CODD.  Invented the relational model  Introduced normalization  Proposed 3 initial normal forms and the Boyce-Codd form History overview
  • 5. • Introduction Initial Normal Forms  First Normal Form (1NF)  Second Normal Form (2NF)  Third Normal Form (3NF)
  • 6. • Introduction Additional Normal Forms  Boyce-Codd Normal Form (BCNF)  Fourth Normal Form (4NF)  Fifth Normal Form (5NF)
  • 7. • First Normal Form (1NF)  Data cannot be broken down further(atomic)  Columns have no repeating/similar data  Each row is unique  Each field has a unique name Rules For 1NF
  • 8. • First Normal Form (1NF) Original Invoice Table Invoice Number Date Amount Customer ID Customer Name Item 125 09/15/2016 1000 17 Harry Potter Wand, Cloak 126 09/16/2016 150 21 Percy Jackson Bolt 127 09/16/2016 380 12 Katniss Everdeen Bow, Arrow 128 09/16/2016 850 17 Harry Potter Broom Break Down
  • 9. • First Normal Form (1NF) Revised Invoice Table Invoice Number Date Amount Customer ID Customer First Name Customer Last Name Item 125 09/15/2016 1000 17 Harry Potter Wand, Cloak 126 09/16/2016 150 21 Percy Jackson Bolt 127 09/16/2016 380 12 Katniss Everdeen Bow, Arrow 128 09/16/2016 850 17 Harry Potter Broom Atomic
  • 10. • First Normal Form (1NF) Revised Invoice Table Invoice Number Date Amount Customer ID Customer First Name Customer Last Name Item 125 09/15/2016 1000 17 Harry Potter Wand 125 09/15/2016 1000 17 Harry Potter Cloak 126 09/16/2016 150 21 Percy Jackson Bolt 127 09/16/2016 380 12 Katniss Everdeen Bow 127 09/16/2016 380 12 Katniss Everdeen Arrow 128 09/16/2016 850 17 Harry Potter Broom No Repeating Data Unique Rows
  • 11. • Second Normal Form (2NF)  Should be in 1NF  Non-key attributes are functional dependent on primary key Rules For 2NF
  • 12. • Second Normal Form (2NF) 1NF invoice table Invoice Number Date Amount Customer ID Customer First Name Customer Last Name Item 125 09/15/2016 1000 17 Harry Potter Wand 125 09/15/2016 1000 17 Harry Potter Cloak 126 09/16/2016 150 21 Percy Jackson Bolt 127 09/16/2016 380 12 Katniss Everdeen Bow 127 09/16/2016 380 12 Katniss Everdeen Arrow 128 09/16/2016 850 17 Harry Potter Broom Non-dependant
  • 13. • Second Normal Form (2NF) 2NF invoice table + Invoice table Invoice Number Date Amount Customer ID Customer First Name Customer Last Name 125 09/15/2016 1000 17 Harry Potter 126 09/16/2016 150 21 Percy Jackson 127 09/16/2016 380 12 Katniss Everdeen 128 09/16/2016 850 17 Harry Potter Invoice Number Item 125 Wand 125 Cloak 126 Bolt 127 Bow 127 Arrow 128 Broom Foreign Key
  • 14. • Third Normal Form (3NF)  Should be in 2NF  No Transitive dependencies Rules For 3NF
  • 15. • Third Normal Form (3NF) 2NF invoice table Invoice Number Date Amount Customer ID Customer First Name Customer Last Name 125 09/15/2016 1000 17 Harry Potter 126 09/16/2016 150 21 Percy Jackson 127 09/16/2016 380 12 Katniss Everdeen 128 09/16/2016 850 17 Harry Potter Transitive dependency X Y Y Z X Z
  • 16. • Third Normal Form (3NF) 3NF invoice table + Customers table Invoice Number Date Amount Customer ID 125 09/15/2016 1000 17 126 09/16/2016 150 21 127 09/16/2016 380 12 128 09/16/2016 850 17 Customer ID Customer First Name Customer last Name 17 Harry Potter 21 Percy Jackson 12 Katniss Everdeen 17 Harry Potter Foreign Key
  • 17. • Conclusion We have seen how Database Normalization can:  Decrease redundancy  Increase efficiency  Reduce anomalies By implementing three of all the different levels of normalization called Normal Forms. The first three NF’s are usually sufficient for most small to medium size applications.