Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Normalization Example

Normalization Example

Ratings: (0)|Views: 5 |Likes:
Published by Saurav Kr.

More info:

Published by: Saurav Kr. on Sep 12, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

09/12/2012

pdf

text

original

 
Data about a Hotel billBillNo BillDt WaiterNo Name Rate Qty TotalCost1 1/1/2010 1 Idli Sambar 15 1 151 1/1/2010 1 Dosa 20 2 401 1/1/2010 1 Thali 40 1 402 1/1/2010 2 Idli Sambar 15 2 302 1/1/2010 2 WadaSambar20 2 40
I NF : A relation is in first normal form if it does not contain anyrepeating groups.
i.e. Identify repeating groups and put them in anothertableBillNo BillDt WN1 1/1/2010 12 1/1/2010 2
Primary Key : BillNo
Name Rate Qty TotalCostIdli Sambar 15 1 15Dosa 20 2 40Thali 40 1 40Idli Sambar 15 2 30Wada Sambar 20 2 40Add columns ItemCode (Code no for each dish) and BillNo (Foreign Key) toabove table.BillNo ItemCode Name Rate Qty TotalCost1 1 Idli Sambar 15 1 151 2 Dosa 20 2 401 3 Thali 40 1 402 1 Idli Sambar 15 2 302 4 Wada Sambar 20 2 40
Primary Key : BillNo and ItemCodeForeign Key : BillNo
 
 
II NF : A relation is in the second normal form if it is in first normalform and all non-key attributes are fully functionally dependent onthe primary key.
i.e. All non-key columns which are not completely(fully) dependent onPrimary key are put in a separate tableBillNo ItemCode Rate Qty TotalCost1 1 15 1 151 2 20 2 401 3 40 1 402 1 15 2 302 4 20 2 40
Primary Key : BillNo and ItemCodeForeign Key : BillNo, ItemCode
 ItemCode Name1 Idli Sambar2 Dosa3 Thali4 Wada Sambar
Primary Key : ItemCodeIII NF : A relation is said to be in the third normal form if It is insecond normal form and every attribute is independent of all othernon-key attributes.
All the non-key columns which are dependent on other non-key columns(i.e. calculated columns) are removed from tableBillNo ItemCode Rate Qty1 1 15 11 2 20 21 3 40 12 1 15 22 4 20 2
Primary Key : BillNo and ItemCodeForeign Key : BillNo, ItemCode

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->