Your SlideShare is downloading. ×
0
CIS282
Normalizing a database   Process of organizing data in database      Avoid duplicate values      Inconsistent dependenc...
First Normal Form Each row/column combination has only one value Eliminate repeating groups    Instead of using a singl...
Second Normal Form Remove fields that are not fully dependent on the key, and place in separate  table(s) ItemID is not ...
Third Normal Form All non-key columns are mutually independent    ItemName depends on ItemID                            ...
Normalization Summary A change in one field should not require change in  another field in the table   No calculations ...
Upcoming SlideShare
Loading in...5
×

Normalization

412

Published on

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
412
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Normalization"

  1. 1. CIS282
  2. 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. 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. 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. 5. Third Normal Form All non-key columns are mutually independent  ItemName depends on ItemID 3rd Normal Form 2nd Normal Form OrderID OrderIDOrderID OrderID CustomerID ItemIDCustomerID ItemID OrderDate QuantityOrderDate Quantity ItemName ItemID ItemName
  6. 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”
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×