SlideShare a Scribd company logo
CIS282
Normalizing a database
   Process of organizing data in database
      Avoid duplicate values
      Inconsistent dependencies
   Each table describes one entity
   Goal is Typically 3rd Normal Form
      Each Form represents a different level
      Each subsequent form requires that previous forms
      already in place
          To be in Third Normal Form, must already be in First
           and Second Normal Form
First Normal Form
 Each row/column combination has only one value
 Eliminate repeating groups
    Instead of using a single field for all items purchased, set up item and
      quantity fields


                                                  1st Normal Form
           Not Normalized                            OrderID
           OrderID                                   CustomerID
           CustomerID                                OrderDate
           OrderDate                                 ItemID
           Items Purchased                           Quantity
                                                     ItemName
Second Normal Form
 Remove fields that are not fully dependent on the key, and place in separate
  table(s)
 ItemID is not dependent on the CustomerID and OrderID; it is dependent on
  OrderID.


      1st Normal Form
                                              2nd Normal Form
         OrderID
         CustomerID                     OrderID        OrderID
         OrderDate                      CustomerID     ItemID
         ItemID                         OrderDate      Quantity
         Quantity                                      ItemName
         ItemName
Third Normal Form
 All non-key columns are mutually independent
    ItemName depends on ItemID




                                             3rd Normal Form
      2nd Normal Form                 OrderID         OrderID
OrderID        OrderID                CustomerID      ItemID
CustomerID     ItemID                 OrderDate       Quantity
OrderDate      Quantity
               ItemName              ItemID
                                     ItemName
Normalization Summary
 A change in one field should not require change in
  another field in the table
   No calculations
 All fields help describe the key
    Each record is unique
    Each table stores information about one “thing”

More Related Content

PPTX
ERP web based system
DOCX
procurement database model -documentation-draft-20150515
PPT
Slowly changing dimensions informatica
PPTX
SAP MM Training in Chennai Demo Part-5
DOC
PPT
PPTX
Managing your tech career
PDF
5 data storage_and_indexing
ERP web based system
procurement database model -documentation-draft-20150515
Slowly changing dimensions informatica
SAP MM Training in Chennai Demo Part-5
Managing your tech career
5 data storage_and_indexing

Viewers also liked (20)

PDF
4 the sql_standard
PDF
1 introduction
PDF
6 relational schema_design
PPT
Best Practices for Database Schema Design
PPTX
Webinar: Build an Application Series - Session 2 - Getting Started
PDF
3 relational model
PDF
MySQL Replication: Pros and Cons
PDF
Distributed Postgres
ZIP
Week3 Lecture Database Design
PPTX
Database Design
PPTX
English gcse final tips
PDF
2 entity relationship_model
PDF
Postgres-XC Write Scalable PostgreSQL Cluster
PDF
Escalabilidade, Sharding, Paralelismo e Bigdata com PostgreSQL? Yes, we can!
PPTX
Database design concept
PPT
Database design
PDF
Database Schema
PPT
Best Practices for Database Schema Design
PPT
Database design
PDF
Advanced Postgres Monitoring
4 the sql_standard
1 introduction
6 relational schema_design
Best Practices for Database Schema Design
Webinar: Build an Application Series - Session 2 - Getting Started
3 relational model
MySQL Replication: Pros and Cons
Distributed Postgres
Week3 Lecture Database Design
Database Design
English gcse final tips
2 entity relationship_model
Postgres-XC Write Scalable PostgreSQL Cluster
Escalabilidade, Sharding, Paralelismo e Bigdata com PostgreSQL? Yes, we can!
Database design concept
Database design
Database Schema
Best Practices for Database Schema Design
Database design
Advanced Postgres Monitoring
Ad

More from Randy Riness @ South Puget Sound Community College (20)

Ad

Recently uploaded (20)

PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
HVAC Specification 2024 according to central public works department
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
Introduction to Building Materials
PDF
advance database management system book.pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
20th Century Theater, Methods, History.pptx
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
Unit 4 Computer Architecture Multicore Processor.pptx
HVAC Specification 2024 according to central public works department
TNA_Presentation-1-Final(SAVE)) (1).pptx
Introduction to Building Materials
advance database management system book.pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Chinmaya Tiranga quiz Grand Finale.pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
LDMMIA Reiki Yoga Finals Review Spring Summer
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
A powerpoint presentation on the Revised K-10 Science Shaping Paper
20th Century Theater, Methods, History.pptx
Virtual and Augmented Reality in Current Scenario
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Paper A Mock Exam 9_ Attempt review.pdf.

Normalization

  • 2. Normalizing a database  Process of organizing data in database  Avoid duplicate values  Inconsistent dependencies  Each table describes one entity  Goal is Typically 3rd Normal Form  Each Form represents a different level  Each subsequent form requires that previous forms already in place  To be in Third Normal Form, must already be in First and Second Normal Form
  • 3. First Normal Form  Each row/column combination has only one value  Eliminate repeating groups  Instead of using a single field for all items purchased, set up item and quantity fields 1st Normal Form Not Normalized OrderID OrderID CustomerID CustomerID OrderDate OrderDate ItemID Items Purchased Quantity ItemName
  • 4. Second Normal Form  Remove fields that are not fully dependent on the key, and place in separate table(s)  ItemID is not dependent on the CustomerID and OrderID; it is dependent on OrderID. 1st Normal Form 2nd Normal Form OrderID CustomerID OrderID OrderID OrderDate CustomerID ItemID ItemID OrderDate Quantity Quantity ItemName ItemName
  • 5. Third Normal Form  All non-key columns are mutually independent  ItemName depends on ItemID 3rd Normal Form 2nd Normal Form OrderID OrderID OrderID OrderID CustomerID ItemID CustomerID ItemID OrderDate Quantity OrderDate Quantity ItemName ItemID ItemName
  • 6. Normalization Summary  A change in one field should not require change in another field in the table  No calculations  All fields help describe the key  Each record is unique  Each table stores information about one “thing”