SlideShare a Scribd company logo
DATABASE
NORMALIZATION
Ehsan Hamzei
NORMALIZATION??
• In RDBs >> For Transactional Purpose >> We Need to
minimum the redundancy
• In Insert
• In Update
• In Deletion
• Result in:
• Consistency
• Performance
FIRST NORMAL FORM
• Each cell contains only a single value.
• Each record is unique.
• Identified by primary key
EXAMPLE?
Name SSN Address Postal code
Ehsan
Hamzei
3920221621 N435 Test alley, Test St,
Test Sq, Tehran, Iran
231233213
Ali Hashemi 3242342432 N2131 Work alley, Work
St, Work Sq, Mashhad,
Iran
324234234
Hassan
Mohammadi
2342342344 N2332 Home alley, Home
St, Home Sq, LA, USA
324124234
EXAMPLE?
Name SSN Address Postal code
Ehsan
Hamzei
3920221621 N435 Test alley, Test St,
Test Sq, Tehran, Iran
231233213
Ali Hashemi 3242342432 N2131 Work alley, Work
St, Work Sq, Mashhad,
Iran
324234234
Hassan
Mohammadi
2342342344 N2332 Home alley, Home
St, Home Sq, LA, USA
324124234
EXAMPLE?
• Violated !!!
• First Name , Last Name
• Address >> Building Number, Alley Name, Street Name,
Locality, City, Country
• PK: SSN
EXAMPLE?
• Normalized (First Normal Form)
FN LN SSN BN AN SN LN City Country Postal
code
Ehsan Hamzei 3920221621 N435 Test
alley
Test St Test Sq Tehran Iran 2312332
13
Ali Hashemi 3242342432 N2131 Work
alley
Work St Work
Sq
Mashhad Iran 3242342
34
Hassan Mohamm
adi
2342342344 N2332 Home
alley
Home St Home
Sq
LA USA 3241242
34
EXAMPLE(2)
• Another Example?????
EXAMPLE(2)
• First Normal:
SECOND NORMAL FORM
• Must be first normal!
• All non-key fields depend on all components
of the primary key.
• Guaranteed when primary key is a single field.
EXAMPLE
• This example is normal in (2nd NF), Because of the single
component key!!!!!
FN LN SSN BN AN SN LN City Country Postal
code
Ehsan Hamzei 3920221621 N435 Test
alley
Test St Test Sq Tehran Iran 2312332
13
Ali Hashemi 3242342432 N2131 Work
alley
Work St Work
Sq
Mashhad Iran 3242342
34
Hassan Mohamm
adi
2342342344 N2332 Home
alley
Home St Home
Sq
LA USA 3241242
34
EXAMPLE(2)
• First Normal:
EXAMPLE(2)
• Second Normal:
THIRD NORMAL FORM
• No non-key field depends upon
another.
• All non-key fields depend only on the
primary key.
EXAMPLE???
FN LN SSN BN AN SN LN City Country Postal
code
Ehsan Hamzei 3920221621 N435 Test
alley
Test St Test Sq Tehran Iran 2312332
13
Ali Hashemi 3242342432 N2131 Work
alley
Work St Work
Sq
Mashhad Iran 3242342
34
Hassan Mohamm
adi
2342342344 N2332 Home
alley
Home St Home
Sq
LA USA 3241242
34
EXAMPLE???
• Violated !!!
• Country & City & LN & SN & BN
depend on Postal Code!!!
EXAMPLE
FN LN SSN Postal Code
Ehsan Hamzei 3920221621 231233213
Ali Hashemi 3242342432 324234234
Hassan Mohammadi 2342342344 324321234
Postal
Code
BN AN SN LN City Country
2312332
13
N435 Test
Alley
Test St Test Sq Tehran Iran
3242342
34
N2131 Work
Allry
Work St Work Sq Mashha
d
Iran
3241242
34
N2332 Home
Alley
Home St Home
Sq
LA USA
EXAMPLE(2)
• First Normal:
EXAMPLE(2)
• Second Normal:
EXAMPLE(2)
• Third Normal Form
SUMMARY
•All Non-Key Column must
depend on PK, All Part of
PK and Only on PK!!!!!!
REFERENCE
• Data-Base Design (Practical Database Design for Relational
Database Management Systems)
• Instructional Services at KU Libraries, The University of Kansas
THANKS 
Ad

More Related Content

Viewers also liked (20)

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
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Edward Blurock
 
Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4
Farhan Chishti
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Prateek Parimal
 
Normalization
NormalizationNormalization
Normalization
Salman Memon
 
Oracle Key Vault Data Subsetting and Masking
Oracle Key Vault Data Subsetting and MaskingOracle Key Vault Data Subsetting and Masking
Oracle Key Vault Data Subsetting and Masking
DLT Solutions
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
Ehsan Hamzei
 
Database Join
Database JoinDatabase Join
Database Join
Farooq Mian
 
Sub join a query optimization algorithm for flash-based database
Sub join a query optimization algorithm for flash-based databaseSub join a query optimization algorithm for flash-based database
Sub join a query optimization algorithm for flash-based database
Zhichao Liang
 
Map algebra
Map algebraMap algebra
Map algebra
Ehsan Hamzei
 
Seawater constituent
Seawater constituentSeawater constituent
Seawater constituent
Mohamad Azhaari Shah
 
16 1 Powerpoint Vocab
16 1 Powerpoint Vocab16 1 Powerpoint Vocab
16 1 Powerpoint Vocab
Tamara
 
How to Create a Toxic Free Environment with Green Cleaning
How to Create a Toxic Free Environment with Green CleaningHow to Create a Toxic Free Environment with Green Cleaning
How to Create a Toxic Free Environment with Green Cleaning
The Sweep Doctor
 
Geoprocessing
GeoprocessingGeoprocessing
Geoprocessing
Ehsan Hamzei
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
Bishrul Haq
 
Database Introduction - Join Query
Database Introduction - Join QueryDatabase Introduction - Join Query
Database Introduction - Join Query
Dudy Ali
 
Scrum Model
Scrum ModelScrum Model
Scrum Model
Farooq Mian
 
Spatial queries entity recognition and disambiguation
Spatial queries entity recognition and disambiguationSpatial queries entity recognition and disambiguation
Spatial queries entity recognition and disambiguation
Ehsan Hamzei
 
Db normalization
Db normalizationDb normalization
Db normalization
Gayan Hewa
 
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
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Edward Blurock
 
Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4
Farhan Chishti
 
Oracle Key Vault Data Subsetting and Masking
Oracle Key Vault Data Subsetting and MaskingOracle Key Vault Data Subsetting and Masking
Oracle Key Vault Data Subsetting and Masking
DLT Solutions
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
Ehsan Hamzei
 
Sub join a query optimization algorithm for flash-based database
Sub join a query optimization algorithm for flash-based databaseSub join a query optimization algorithm for flash-based database
Sub join a query optimization algorithm for flash-based database
Zhichao Liang
 
16 1 Powerpoint Vocab
16 1 Powerpoint Vocab16 1 Powerpoint Vocab
16 1 Powerpoint Vocab
Tamara
 
How to Create a Toxic Free Environment with Green Cleaning
How to Create a Toxic Free Environment with Green CleaningHow to Create a Toxic Free Environment with Green Cleaning
How to Create a Toxic Free Environment with Green Cleaning
The Sweep Doctor
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
Bishrul Haq
 
Database Introduction - Join Query
Database Introduction - Join QueryDatabase Introduction - Join Query
Database Introduction - Join Query
Dudy Ali
 
Spatial queries entity recognition and disambiguation
Spatial queries entity recognition and disambiguationSpatial queries entity recognition and disambiguation
Spatial queries entity recognition and disambiguation
Ehsan Hamzei
 
Db normalization
Db normalizationDb normalization
Db normalization
Gayan Hewa
 

More from Ehsan Hamzei (15)

Introduction to Oracle Spatial
Introduction to Oracle SpatialIntroduction to Oracle Spatial
Introduction to Oracle Spatial
Ehsan Hamzei
 
Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)
Ehsan Hamzei
 
Arc GIS Overlay Functions
Arc GIS Overlay FunctionsArc GIS Overlay Functions
Arc GIS Overlay Functions
Ehsan Hamzei
 
Air pollution Assessment (GIS,RS Approach)
Air pollution Assessment (GIS,RS Approach)Air pollution Assessment (GIS,RS Approach)
Air pollution Assessment (GIS,RS Approach)
Ehsan Hamzei
 
Bluetooth Positioning
Bluetooth PositioningBluetooth Positioning
Bluetooth Positioning
Ehsan Hamzei
 
Oracle Data Integrator (persian)
Oracle Data Integrator (persian)Oracle Data Integrator (persian)
Oracle Data Integrator (persian)
Ehsan Hamzei
 
Uncertainty in Geospatial Data
Uncertainty in Geospatial DataUncertainty in Geospatial Data
Uncertainty in Geospatial Data
Ehsan Hamzei
 
Spatial Autocorrelation
Spatial AutocorrelationSpatial Autocorrelation
Spatial Autocorrelation
Ehsan Hamzei
 
Fractal Theory
Fractal TheoryFractal Theory
Fractal Theory
Ehsan Hamzei
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
Ehsan Hamzei
 
Fuzzy Set
Fuzzy SetFuzzy Set
Fuzzy Set
Ehsan Hamzei
 
Spatial Transformation
Spatial TransformationSpatial Transformation
Spatial Transformation
Ehsan Hamzei
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
Ehsan Hamzei
 
DTM Quality Assessment
DTM Quality AssessmentDTM Quality Assessment
DTM Quality Assessment
Ehsan Hamzei
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
Ehsan Hamzei
 
Introduction to Oracle Spatial
Introduction to Oracle SpatialIntroduction to Oracle Spatial
Introduction to Oracle Spatial
Ehsan Hamzei
 
Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)
Ehsan Hamzei
 
Arc GIS Overlay Functions
Arc GIS Overlay FunctionsArc GIS Overlay Functions
Arc GIS Overlay Functions
Ehsan Hamzei
 
Air pollution Assessment (GIS,RS Approach)
Air pollution Assessment (GIS,RS Approach)Air pollution Assessment (GIS,RS Approach)
Air pollution Assessment (GIS,RS Approach)
Ehsan Hamzei
 
Bluetooth Positioning
Bluetooth PositioningBluetooth Positioning
Bluetooth Positioning
Ehsan Hamzei
 
Oracle Data Integrator (persian)
Oracle Data Integrator (persian)Oracle Data Integrator (persian)
Oracle Data Integrator (persian)
Ehsan Hamzei
 
Uncertainty in Geospatial Data
Uncertainty in Geospatial DataUncertainty in Geospatial Data
Uncertainty in Geospatial Data
Ehsan Hamzei
 
Spatial Autocorrelation
Spatial AutocorrelationSpatial Autocorrelation
Spatial Autocorrelation
Ehsan Hamzei
 
Spatial Transformation
Spatial TransformationSpatial Transformation
Spatial Transformation
Ehsan Hamzei
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
Ehsan Hamzei
 
DTM Quality Assessment
DTM Quality AssessmentDTM Quality Assessment
DTM Quality Assessment
Ehsan Hamzei
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
Ehsan Hamzei
 
Ad

Recently uploaded (20)

five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdffive-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
AdityaSharma944496
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Journal of Soft Computing in Civil Engineering
 
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptxFourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
VENKATESHBHAT25
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
How to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptxHow to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptx
engaash9
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Mirada a 12 proyectos desarrollados con BIM.pdf
Mirada a 12 proyectos desarrollados con BIM.pdfMirada a 12 proyectos desarrollados con BIM.pdf
Mirada a 12 proyectos desarrollados con BIM.pdf
topitodosmasdos
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Dust Suppressants: A Sustainable Approach to Dust Pollution Control
Dust Suppressants: A Sustainable Approach to Dust Pollution ControlDust Suppressants: A Sustainable Approach to Dust Pollution Control
Dust Suppressants: A Sustainable Approach to Dust Pollution Control
Janapriya Roy
 
Engineering Chemistry First Year Fullerenes
Engineering Chemistry First Year FullerenesEngineering Chemistry First Year Fullerenes
Engineering Chemistry First Year Fullerenes
5g2jpd9sp4
 
Building Security Systems in Architecture.pdf
Building Security Systems in Architecture.pdfBuilding Security Systems in Architecture.pdf
Building Security Systems in Architecture.pdf
rabiaatif2
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Lecture 13 (Air and Noise Pollution and their Control) (1).pptx
Lecture 13 (Air and Noise Pollution and their Control) (1).pptxLecture 13 (Air and Noise Pollution and their Control) (1).pptx
Lecture 13 (Air and Noise Pollution and their Control) (1).pptx
huzaifabilalshams
 
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdffive-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
AdityaSharma944496
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptxFourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
VENKATESHBHAT25
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
How to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptxHow to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptx
engaash9
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Mirada a 12 proyectos desarrollados con BIM.pdf
Mirada a 12 proyectos desarrollados con BIM.pdfMirada a 12 proyectos desarrollados con BIM.pdf
Mirada a 12 proyectos desarrollados con BIM.pdf
topitodosmasdos
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Dust Suppressants: A Sustainable Approach to Dust Pollution Control
Dust Suppressants: A Sustainable Approach to Dust Pollution ControlDust Suppressants: A Sustainable Approach to Dust Pollution Control
Dust Suppressants: A Sustainable Approach to Dust Pollution Control
Janapriya Roy
 
Engineering Chemistry First Year Fullerenes
Engineering Chemistry First Year FullerenesEngineering Chemistry First Year Fullerenes
Engineering Chemistry First Year Fullerenes
5g2jpd9sp4
 
Building Security Systems in Architecture.pdf
Building Security Systems in Architecture.pdfBuilding Security Systems in Architecture.pdf
Building Security Systems in Architecture.pdf
rabiaatif2
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Lecture 13 (Air and Noise Pollution and their Control) (1).pptx
Lecture 13 (Air and Noise Pollution and their Control) (1).pptxLecture 13 (Air and Noise Pollution and their Control) (1).pptx
Lecture 13 (Air and Noise Pollution and their Control) (1).pptx
huzaifabilalshams
 
Ad

Database Normalization

  • 2. NORMALIZATION?? • In RDBs >> For Transactional Purpose >> We Need to minimum the redundancy • In Insert • In Update • In Deletion • Result in: • Consistency • Performance
  • 3. FIRST NORMAL FORM • Each cell contains only a single value. • Each record is unique. • Identified by primary key
  • 4. EXAMPLE? Name SSN Address Postal code Ehsan Hamzei 3920221621 N435 Test alley, Test St, Test Sq, Tehran, Iran 231233213 Ali Hashemi 3242342432 N2131 Work alley, Work St, Work Sq, Mashhad, Iran 324234234 Hassan Mohammadi 2342342344 N2332 Home alley, Home St, Home Sq, LA, USA 324124234
  • 5. EXAMPLE? Name SSN Address Postal code Ehsan Hamzei 3920221621 N435 Test alley, Test St, Test Sq, Tehran, Iran 231233213 Ali Hashemi 3242342432 N2131 Work alley, Work St, Work Sq, Mashhad, Iran 324234234 Hassan Mohammadi 2342342344 N2332 Home alley, Home St, Home Sq, LA, USA 324124234
  • 6. EXAMPLE? • Violated !!! • First Name , Last Name • Address >> Building Number, Alley Name, Street Name, Locality, City, Country • PK: SSN
  • 7. EXAMPLE? • Normalized (First Normal Form) FN LN SSN BN AN SN LN City Country Postal code Ehsan Hamzei 3920221621 N435 Test alley Test St Test Sq Tehran Iran 2312332 13 Ali Hashemi 3242342432 N2131 Work alley Work St Work Sq Mashhad Iran 3242342 34 Hassan Mohamm adi 2342342344 N2332 Home alley Home St Home Sq LA USA 3241242 34
  • 10. SECOND NORMAL FORM • Must be first normal! • All non-key fields depend on all components of the primary key. • Guaranteed when primary key is a single field.
  • 11. EXAMPLE • This example is normal in (2nd NF), Because of the single component key!!!!! FN LN SSN BN AN SN LN City Country Postal code Ehsan Hamzei 3920221621 N435 Test alley Test St Test Sq Tehran Iran 2312332 13 Ali Hashemi 3242342432 N2131 Work alley Work St Work Sq Mashhad Iran 3242342 34 Hassan Mohamm adi 2342342344 N2332 Home alley Home St Home Sq LA USA 3241242 34
  • 14. THIRD NORMAL FORM • No non-key field depends upon another. • All non-key fields depend only on the primary key.
  • 15. EXAMPLE??? FN LN SSN BN AN SN LN City Country Postal code Ehsan Hamzei 3920221621 N435 Test alley Test St Test Sq Tehran Iran 2312332 13 Ali Hashemi 3242342432 N2131 Work alley Work St Work Sq Mashhad Iran 3242342 34 Hassan Mohamm adi 2342342344 N2332 Home alley Home St Home Sq LA USA 3241242 34
  • 16. EXAMPLE??? • Violated !!! • Country & City & LN & SN & BN depend on Postal Code!!!
  • 17. EXAMPLE FN LN SSN Postal Code Ehsan Hamzei 3920221621 231233213 Ali Hashemi 3242342432 324234234 Hassan Mohammadi 2342342344 324321234 Postal Code BN AN SN LN City Country 2312332 13 N435 Test Alley Test St Test Sq Tehran Iran 3242342 34 N2131 Work Allry Work St Work Sq Mashha d Iran 3241242 34 N2332 Home Alley Home St Home Sq LA USA
  • 21. SUMMARY •All Non-Key Column must depend on PK, All Part of PK and Only on PK!!!!!!
  • 22. REFERENCE • Data-Base Design (Practical Database Design for Relational Database Management Systems) • Instructional Services at KU Libraries, The University of Kansas