SlideShare a Scribd company logo
1 of 15
Free Ebooks Download MbaFree Ebooks Download Mba
EbooksEbooks
By EdholeBy Edhole
Mba ebooksMba ebooks
Free ebooks downloadFree ebooks download
http://ebooks.edhole.comhttp://ebooks.edhole.com
11stst
, 2, 2ndnd
, and 3, and 3rdrd
Normal FormsNormal Forms
ByBy
EdholeEdhole
San Jose State UniversitySan Jose State University
http://ebooks.edhole.comhttp://ebooks.edhole.com
OverviewOverview
 Today we’ll talk about:Today we’ll talk about:
 Database NormalizationDatabase Normalization
 Data Anomalies Caused by:Data Anomalies Caused by:
 Update, Insertion, DeletionUpdate, Insertion, Deletion
 Brief History/OverviewBrief History/Overview
 11stst
Normal FormNormal Form
 22ndnd
Normal FormNormal Form
 33rdrd
Normal FormNormal Form
 ConclusionConclusion
Database NormalizationDatabase Normalization
 The main goal of Database NormalizationThe main goal of Database Normalization
is to restructure the logical data model of ais to restructure the logical data model of a
database to:database to:
 Eliminate redundancyEliminate redundancy
 Organize data efficientlyOrganize data efficiently
 Reduce the potential for data anomalies.Reduce the potential for data anomalies.
Data AnomaliesData Anomalies
 Data anomalies are inconsistencies in the dataData anomalies are inconsistencies in the data
stored in a database as a result of an operationstored in a database as a result of an operation
such as update, insertion, and/or deletion.such as update, insertion, and/or deletion.
 Such inconsistencies may arise when have aSuch inconsistencies may arise when have a
particular record stored in multiple locations andparticular record stored in multiple locations and
not all of the copies are updated.not all of the copies are updated.
 We can prevent such anomalies byWe can prevent such anomalies by
implementing 7 different level of normalizationimplementing 7 different level of normalization
called Normal Forms (NF)called Normal Forms (NF)
 We’ll only look at the first three.We’ll only look at the first three. 
Brief History/OverviewBrief History/Overview
 Database Normalization was first proposed by Edgar F.Database Normalization was first proposed by Edgar F.
Codd.Codd.
 Codd defined the first three Normal Forms, which we’llCodd defined the first three Normal Forms, which we’ll
look into, of the 7 known Normal Forms.look into, of the 7 known Normal Forms.
 In order to do normalization we must know what theIn order to do normalization we must know what the
requirements are for each of the three Normal Formsrequirements are for each of the three Normal Forms
that we’ll go over.that we’ll go over.
 One of the key requirements to remember is that NormalOne of the key requirements to remember is that Normal
Forms are progressive. That is, in order to have 3Forms are progressive. That is, in order to have 3rdrd
NFNF
we must have 2we must have 2ndnd
NF and in order to have 2NF and in order to have 2ndnd
NF we mustNF we must
have 1have 1stst
NF.NF.
11stst
Normal FormNormal Form
The RequirementsThe Requirements
 The requirements to satisfy the 1The requirements to satisfy the 1stst
NF:NF:
 Each table has a primary key: minimal set ofEach table has a primary key: minimal set of
attributes which can uniquely identify a recordattributes which can uniquely identify a record
 The values in each column of a table areThe values in each column of a table are
atomic (No multi-value attributes allowed).atomic (No multi-value attributes allowed).
 There are no repeating groups: two columnsThere are no repeating groups: two columns
do not store similar information in the samedo not store similar information in the same
table.table.
http://ebooks.edhole.comhttp://ebooks.edhole.com
11stst
Normal FormNormal Form
ExampleExample
Un-normalized Students table:Un-normalized Students table:
Normalized Students table:Normalized Students table:
Student#Student# AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom ClassClass
11
Class2Class2
123123 123A123A JamesJames 555555 102-8102-8 104-9104-9
124124 123B123B SmithSmith 467467 209-0209-0 102-8102-8
Student#Student# AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom Class#Class#
123123 123A123A JamesJames 555555 102-8102-8
123123 123A123A JamesJames 555555 104-9104-9
124124 123B123B SmithSmith 467467 209-0209-0
124124 123B123B SmithSmith 467467 102-8102-8
22ndnd
Normal FormNormal Form
The RequirementsThe Requirements
 The requirements to satisfy the 2The requirements to satisfy the 2ndnd
NF:NF:
 All requirements for 1All requirements for 1stst
NF must be met.NF must be met.
 Redundant data across multiple rows of aRedundant data across multiple rows of a
table must be moved to a separate table.table must be moved to a separate table.
 The resulting tables must be related to each otherThe resulting tables must be related to each other
by use of foreign key.by use of foreign key.
22ndnd
Normal FormNormal Form
ExampleExampleStudents tableStudents table
Registration tableRegistration table
Student#Student# AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom
123123 123A123A JamesJames 555555
124124 123B123B SmithSmith 467467
Student#Student# Class#Class#
123123 102-8102-8
123123 104-9104-9
124124 209-0209-0
124124 102-8102-8
33rdrd
Normal FormNormal Form
The RequirementsThe Requirements
 The requirements to satisfy the 3The requirements to satisfy the 3rdrd
NF:NF:
 All requirements for 2All requirements for 2ndnd
NF must be met.NF must be met.
 Eliminate fields that do not depend on theEliminate fields that do not depend on the
primary key;primary key;
 That is, any field that is dependent not only on theThat is, any field that is dependent not only on the
primary key but also on another field must beprimary key but also on another field must be
moved to another table.moved to another table.
http://ebooks.edhole.com
33rdrd
Normal FormNormal Form
ExampleExample
Students table:Students table:
Student table:Student table: Advisor table:Advisor table:
Student#Student# AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom
123123 123A123A JamesJames 555555
124124 123B123B SmithSmith 467467
Student#Student# AdvIDAdvID
123123 123A123A
124124 123B123B
AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom
123A123A JamesJames 555555
123B123B SmithSmith 467467
33rdrd
Normal FormNormal Form
Example Cont.Example Cont.Students table:Students table:
Registration table:Registration table: Advisor table:Advisor table:
Student#Student# Class#Class#
123123 102-8102-8
123123 104-9104-9
124124 209-0209-0
124124 102-8102-8
AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom
123A123A JamesJames 555555
123B123B SmithSmith 467467
Student#Student# AdvIDAdvID
123123 123A123A
124124 123B123B
ConclusionConclusion
 We have seen how DatabaseWe have seen how Database
Normalization can decrease redundancy,Normalization can decrease redundancy,
increase efficiency and reduce anomaliesincrease efficiency and reduce anomalies
by implementing three of seven differentby implementing three of seven different
levels of normalization called Normallevels of normalization called Normal
Forms. The first three NF’s are usuallyForms. The first three NF’s are usually
sufficient for most small to medium sizesufficient for most small to medium size
applications.applications.
ReferencesReferences
 Hillyer Mike, MySQL AB.Hillyer Mike, MySQL AB. An Introduction to Database NormalizationAn Introduction to Database Normalization,,
http://dev.mysql.com/tech-resources/articles/intro-to-normalization.htmlhttp://dev.mysql.com/tech-resources/articles/intro-to-normalization.html,,
accessed October 17, 2006.accessed October 17, 2006.
 Microsoft.Microsoft. Description of the database normalization basicsDescription of the database normalization basics,,
http://support.microsoft.com/kb/283878http://support.microsoft.com/kb/283878 , accessed October 17, 2006., accessed October 17, 2006.
 Wikipedia.Wikipedia. Database Normalization.Database Normalization.
http://en.wikipedia.org/wiki/Database_normalization.htmlhttp://en.wikipedia.org/wiki/Database_normalization.html , accessed October, accessed October
17, 2006.17, 2006.

More Related Content

More from Edhole.com

Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbaiEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Video lectures for mba
Video lectures for mbaVideo lectures for mba
Video lectures for mbaEdhole.com
 
Video lecture for b.tech
Video lecture for b.techVideo lecture for b.tech
Video lecture for b.techEdhole.com
 
Video lecture for bca
Video lecture for bcaVideo lecture for bca
Video lecture for bcaEdhole.com
 
Mba top schools in india
Mba top schools in indiaMba top schools in india
Mba top schools in indiaEdhole.com
 
B.tech top schools in india
B.tech top schools in indiaB.tech top schools in india
B.tech top schools in indiaEdhole.com
 
Top schools in india
Top schools in indiaTop schools in india
Top schools in indiaEdhole.com
 

More from Edhole.com (20)

Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Video lectures for mba
Video lectures for mbaVideo lectures for mba
Video lectures for mba
 
Video lecture for b.tech
Video lecture for b.techVideo lecture for b.tech
Video lecture for b.tech
 
Video lecture for bca
Video lecture for bcaVideo lecture for bca
Video lecture for bca
 
Mba top schools in india
Mba top schools in indiaMba top schools in india
Mba top schools in india
 
B.tech top schools in india
B.tech top schools in indiaB.tech top schools in india
B.tech top schools in india
 
Top schools in india
Top schools in indiaTop schools in india
Top schools in india
 

Recently uploaded

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 

Recently uploaded (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Mba ebooks

  • 1. Free Ebooks Download MbaFree Ebooks Download Mba EbooksEbooks By EdholeBy Edhole Mba ebooksMba ebooks Free ebooks downloadFree ebooks download http://ebooks.edhole.comhttp://ebooks.edhole.com
  • 2. 11stst , 2, 2ndnd , and 3, and 3rdrd Normal FormsNormal Forms ByBy EdholeEdhole San Jose State UniversitySan Jose State University http://ebooks.edhole.comhttp://ebooks.edhole.com
  • 3. OverviewOverview  Today we’ll talk about:Today we’ll talk about:  Database NormalizationDatabase Normalization  Data Anomalies Caused by:Data Anomalies Caused by:  Update, Insertion, DeletionUpdate, Insertion, Deletion  Brief History/OverviewBrief History/Overview  11stst Normal FormNormal Form  22ndnd Normal FormNormal Form  33rdrd Normal FormNormal Form  ConclusionConclusion
  • 4. Database NormalizationDatabase Normalization  The main goal of Database NormalizationThe main goal of Database Normalization is to restructure the logical data model of ais to restructure the logical data model of a database to:database to:  Eliminate redundancyEliminate redundancy  Organize data efficientlyOrganize data efficiently  Reduce the potential for data anomalies.Reduce the potential for data anomalies.
  • 5. Data AnomaliesData Anomalies  Data anomalies are inconsistencies in the dataData anomalies are inconsistencies in the data stored in a database as a result of an operationstored in a database as a result of an operation such as update, insertion, and/or deletion.such as update, insertion, and/or deletion.  Such inconsistencies may arise when have aSuch inconsistencies may arise when have a particular record stored in multiple locations andparticular record stored in multiple locations and not all of the copies are updated.not all of the copies are updated.  We can prevent such anomalies byWe can prevent such anomalies by implementing 7 different level of normalizationimplementing 7 different level of normalization called Normal Forms (NF)called Normal Forms (NF)  We’ll only look at the first three.We’ll only look at the first three. 
  • 6. Brief History/OverviewBrief History/Overview  Database Normalization was first proposed by Edgar F.Database Normalization was first proposed by Edgar F. Codd.Codd.  Codd defined the first three Normal Forms, which we’llCodd defined the first three Normal Forms, which we’ll look into, of the 7 known Normal Forms.look into, of the 7 known Normal Forms.  In order to do normalization we must know what theIn order to do normalization we must know what the requirements are for each of the three Normal Formsrequirements are for each of the three Normal Forms that we’ll go over.that we’ll go over.  One of the key requirements to remember is that NormalOne of the key requirements to remember is that Normal Forms are progressive. That is, in order to have 3Forms are progressive. That is, in order to have 3rdrd NFNF we must have 2we must have 2ndnd NF and in order to have 2NF and in order to have 2ndnd NF we mustNF we must have 1have 1stst NF.NF.
  • 7. 11stst Normal FormNormal Form The RequirementsThe Requirements  The requirements to satisfy the 1The requirements to satisfy the 1stst NF:NF:  Each table has a primary key: minimal set ofEach table has a primary key: minimal set of attributes which can uniquely identify a recordattributes which can uniquely identify a record  The values in each column of a table areThe values in each column of a table are atomic (No multi-value attributes allowed).atomic (No multi-value attributes allowed).  There are no repeating groups: two columnsThere are no repeating groups: two columns do not store similar information in the samedo not store similar information in the same table.table. http://ebooks.edhole.comhttp://ebooks.edhole.com
  • 8. 11stst Normal FormNormal Form ExampleExample Un-normalized Students table:Un-normalized Students table: Normalized Students table:Normalized Students table: Student#Student# AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom ClassClass 11 Class2Class2 123123 123A123A JamesJames 555555 102-8102-8 104-9104-9 124124 123B123B SmithSmith 467467 209-0209-0 102-8102-8 Student#Student# AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom Class#Class# 123123 123A123A JamesJames 555555 102-8102-8 123123 123A123A JamesJames 555555 104-9104-9 124124 123B123B SmithSmith 467467 209-0209-0 124124 123B123B SmithSmith 467467 102-8102-8
  • 9. 22ndnd Normal FormNormal Form The RequirementsThe Requirements  The requirements to satisfy the 2The requirements to satisfy the 2ndnd NF:NF:  All requirements for 1All requirements for 1stst NF must be met.NF must be met.  Redundant data across multiple rows of aRedundant data across multiple rows of a table must be moved to a separate table.table must be moved to a separate table.  The resulting tables must be related to each otherThe resulting tables must be related to each other by use of foreign key.by use of foreign key.
  • 10. 22ndnd Normal FormNormal Form ExampleExampleStudents tableStudents table Registration tableRegistration table Student#Student# AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom 123123 123A123A JamesJames 555555 124124 123B123B SmithSmith 467467 Student#Student# Class#Class# 123123 102-8102-8 123123 104-9104-9 124124 209-0209-0 124124 102-8102-8
  • 11. 33rdrd Normal FormNormal Form The RequirementsThe Requirements  The requirements to satisfy the 3The requirements to satisfy the 3rdrd NF:NF:  All requirements for 2All requirements for 2ndnd NF must be met.NF must be met.  Eliminate fields that do not depend on theEliminate fields that do not depend on the primary key;primary key;  That is, any field that is dependent not only on theThat is, any field that is dependent not only on the primary key but also on another field must beprimary key but also on another field must be moved to another table.moved to another table. http://ebooks.edhole.com
  • 12. 33rdrd Normal FormNormal Form ExampleExample Students table:Students table: Student table:Student table: Advisor table:Advisor table: Student#Student# AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom 123123 123A123A JamesJames 555555 124124 123B123B SmithSmith 467467 Student#Student# AdvIDAdvID 123123 123A123A 124124 123B123B AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom 123A123A JamesJames 555555 123B123B SmithSmith 467467
  • 13. 33rdrd Normal FormNormal Form Example Cont.Example Cont.Students table:Students table: Registration table:Registration table: Advisor table:Advisor table: Student#Student# Class#Class# 123123 102-8102-8 123123 104-9104-9 124124 209-0209-0 124124 102-8102-8 AdvIDAdvID AdvNameAdvName AdvRoomAdvRoom 123A123A JamesJames 555555 123B123B SmithSmith 467467 Student#Student# AdvIDAdvID 123123 123A123A 124124 123B123B
  • 14. ConclusionConclusion  We have seen how DatabaseWe have seen how Database Normalization can decrease redundancy,Normalization can decrease redundancy, increase efficiency and reduce anomaliesincrease efficiency and reduce anomalies by implementing three of seven differentby implementing three of seven different levels of normalization called Normallevels of normalization called Normal Forms. The first three NF’s are usuallyForms. The first three NF’s are usually sufficient for most small to medium sizesufficient for most small to medium size applications.applications.
  • 15. ReferencesReferences  Hillyer Mike, MySQL AB.Hillyer Mike, MySQL AB. An Introduction to Database NormalizationAn Introduction to Database Normalization,, http://dev.mysql.com/tech-resources/articles/intro-to-normalization.htmlhttp://dev.mysql.com/tech-resources/articles/intro-to-normalization.html,, accessed October 17, 2006.accessed October 17, 2006.  Microsoft.Microsoft. Description of the database normalization basicsDescription of the database normalization basics,, http://support.microsoft.com/kb/283878http://support.microsoft.com/kb/283878 , accessed October 17, 2006., accessed October 17, 2006.  Wikipedia.Wikipedia. Database Normalization.Database Normalization. http://en.wikipedia.org/wiki/Database_normalization.htmlhttp://en.wikipedia.org/wiki/Database_normalization.html , accessed October, accessed October 17, 2006.17, 2006.

Editor's Notes

  1. http://ebooks.edhole.com
  2. http://ebooks.edhole.com
  3. http://ebooks.edhole.com
  4. http://ebooks.edhole.com
  5. http://ebooks.edhole.com
  6. http://ebooks.edhole.com
  7. http://ebooks.edhole.com
  8. http://ebooks.edhole.com
  9. http://ebooks.edhole.com
  10. http://ebooks.edhole.com
  11. http://ebooks.edhole.com
  12. http://ebooks.edhole.com
  13. http://ebooks.edhole.com
  14. http://ebooks.edhole.com
  15. http://ebooks.edhole.com