SlideShare a Scribd company logo
1 of 11
Normalisation




                Paulene
                Fatemah
                Brian
                Mohamed
ORDER CARD

                     Orders
Order No:
Order Day
Customer No
Customer Name
Customer Address
Item No Name        Qty         Price   Total




Total Amount:
Benefits for creating a database?

Fast Queries     Flexibility
Multiple Users Longevity
Portability
3 Steps
                Orders
Order No:         001
Order Day         24/01/11                Identify the
Customer No:      501                     candidate keys?
Customer Name:    Jeff Blogs
Customer Address: 34 Street
                                          Select the
Item   Name     Qty      Price   Total    primary key
No
110    Pizza    1        £2.00   £2.00
                                          Apply
111    Chips    4        £1.00   £4.00
                                          Normalisation
Total Amount:                    £6.00
Normalisation
A set of rules to ensure a database
 is ordered in the best possible way

Removal of data redundancy


Integrity
1st   Normal Form

 No repeating elements/groups/data
Orders
Order No:         001                                                 Total
Order Day         24/01/11                                            Amount
Customer No:      501                  Order Day
Customer Name:    Jeff Blogs
                                                      Orders
Customer Address: 34 Street
                                       ItemNo         OrderNo - PK

Item   Name      Qty   Price Total     Item Name
No
                                       Item Qty     Customer    Customer
                                                    No          Name
110    Pizza     1     £2.00   £2.00
                                       Item Price
111    Chips     4     £1.00   £4.00
                                                           Customer
                                       Item Total          Address

Total Amount:                  £6.00
1NF?
Order   Order   Cust   Cust    Cust     Item   Item     Item   Item    Item    Total
No      Day     No     Name    Addrs    No     Name     Qty    Price   Total   Amnt


001     24/01/ 501     Jeff    34       110    Pizza,   1,     £2.00   £2.00   £6.00
        11             Blogs   Street   111    Chips    4      £4.00   £4.00
002     24/01/ 502     Fred    20       110    Pizza    2      £2.00   £4.00   £4.00
        11             Luke    Road




      Remember:
       No repeating elements/groups/data
Interactive Task
 Using the cards on your desk , stand up and
  organise yourselves into 1NF.

Remember:
 Whenever u fail a Normal Form, u must create a
  new entity.
 No repeating elements/groups/data
1NF
Orders - Table
OrderNo   OrderDay    Cust No    Cust Name Cust
                                           Address
001       24/01/11    501        Jeff Blogs   34 Street
002       24/01/11    502        Fred Luke    20 Road


Order Items - Table
OrderNo   ItemNo      Item Name Item Price    Item Qty    Item
                                                          Amount
001       110         Pizza      £2.00        1           £2.00
001       111         Chips      £1.00        4           £4.00
002       110         Pizza      £2.00        2           £4.00
What do you do when you fail in
1NF?
 Create a new entity
 The new entity will have a concatenated primary key

Orders - Table
OrderNo     OrderDay       Cust No      Cust Name        Cust Address




Order Items - Table
OrderNo   ItemNo       Item Name Item Price   Item Qty     Item
                                                           Amount

More Related Content

What's hot

Insertion in singly linked list
Insertion in singly linked listInsertion in singly linked list
Insertion in singly linked listKeval Bhogayata
 
Bfs & dfs application
Bfs & dfs applicationBfs & dfs application
Bfs & dfs applicationUmme habiba
 
06. operator overloading
06. operator overloading06. operator overloading
06. operator overloadingHaresh Jaiswal
 
Introduction to Data Structures Sorting and searching
Introduction to Data Structures Sorting and searchingIntroduction to Data Structures Sorting and searching
Introduction to Data Structures Sorting and searchingMvenkatarao
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1Jesuraj Love
 
Deque and its applications
Deque and its applicationsDeque and its applications
Deque and its applicationsJsaddam Hussain
 
Stacks IN DATA STRUCTURES
Stacks IN DATA STRUCTURESStacks IN DATA STRUCTURES
Stacks IN DATA STRUCTURESSowmya Jyothi
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound techniqueishmecse13
 
Ppt of operations on one way link list
Ppt of operations on one way  link listPpt of operations on one way  link list
Ppt of operations on one way link listSukhdeep Kaur
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsAakash deep Singhal
 

What's hot (20)

Recursion
RecursionRecursion
Recursion
 
Insertion in singly linked list
Insertion in singly linked listInsertion in singly linked list
Insertion in singly linked list
 
Iterations and Recursions
Iterations and RecursionsIterations and Recursions
Iterations and Recursions
 
Searching techniques
Searching techniquesSearching techniques
Searching techniques
 
Bfs & dfs application
Bfs & dfs applicationBfs & dfs application
Bfs & dfs application
 
06. operator overloading
06. operator overloading06. operator overloading
06. operator overloading
 
Introduction to Data Structures Sorting and searching
Introduction to Data Structures Sorting and searchingIntroduction to Data Structures Sorting and searching
Introduction to Data Structures Sorting and searching
 
Best,worst,average case .17581556 045
Best,worst,average case .17581556 045Best,worst,average case .17581556 045
Best,worst,average case .17581556 045
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
 
Deque and its applications
Deque and its applicationsDeque and its applications
Deque and its applications
 
Queue Data Structure
Queue Data StructureQueue Data Structure
Queue Data Structure
 
Quick Sort
Quick SortQuick Sort
Quick Sort
 
Circular queue
Circular queueCircular queue
Circular queue
 
Stacks IN DATA STRUCTURES
Stacks IN DATA STRUCTURESStacks IN DATA STRUCTURES
Stacks IN DATA STRUCTURES
 
Quick sort algorithm using slide presentation , Learn selection sort example ...
Quick sort algorithm using slide presentation , Learn selection sort example ...Quick sort algorithm using slide presentation , Learn selection sort example ...
Quick sort algorithm using slide presentation , Learn selection sort example ...
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound technique
 
stack presentation
stack presentationstack presentation
stack presentation
 
Ppt of operations on one way link list
Ppt of operations on one way  link listPpt of operations on one way  link list
Ppt of operations on one way link list
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 
Binary Arithmetic Operations
Binary Arithmetic OperationsBinary Arithmetic Operations
Binary Arithmetic Operations
 

Viewers also liked

Database management system
Database management systemDatabase management system
Database management systemTushar Desarda
 
TIMEN: An Open Temporal Expression Normalisation Resource
TIMEN: An Open Temporal Expression Normalisation ResourceTIMEN: An Open Temporal Expression Normalisation Resource
TIMEN: An Open Temporal Expression Normalisation ResourceLeon Derczynski
 
Database Normalisation
Database NormalisationDatabase Normalisation
Database NormalisationAmin Omi
 
Normalisation student summary
Normalisation student summaryNormalisation student summary
Normalisation student summarymary_ramsay
 
Normalization
NormalizationNormalization
Normalizationlingesan
 
Normalisation - 2nd normal form
Normalisation - 2nd normal formNormalisation - 2nd normal form
Normalisation - 2nd normal formcollege
 
Normalization
NormalizationNormalization
Normalizationochesing
 
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, 5NFOum Saokosal
 
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
 

Viewers also liked (15)

Database management system
Database management systemDatabase management system
Database management system
 
TIMEN: An Open Temporal Expression Normalisation Resource
TIMEN: An Open Temporal Expression Normalisation ResourceTIMEN: An Open Temporal Expression Normalisation Resource
TIMEN: An Open Temporal Expression Normalisation Resource
 
Normalisation
NormalisationNormalisation
Normalisation
 
Database Normalisation
Database NormalisationDatabase Normalisation
Database Normalisation
 
Normalisation student summary
Normalisation student summaryNormalisation student summary
Normalisation student summary
 
Normalization
NormalizationNormalization
Normalization
 
Normalization in databases
Normalization in databasesNormalization in databases
Normalization in databases
 
Normalisation
NormalisationNormalisation
Normalisation
 
Dbms and sqlpptx
Dbms and sqlpptxDbms and sqlpptx
Dbms and sqlpptx
 
Normalisation - 2nd normal form
Normalisation - 2nd normal formNormalisation - 2nd normal form
Normalisation - 2nd normal form
 
Normalization
NormalizationNormalization
Normalization
 
DBMS - Normalization
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
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
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
 

Recently uploaded

Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Riya Pathan
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...ritikasharma
 
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...rahim quresi
 
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...anamikaraghav4
 
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...ritikasharma
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...russian goa call girl and escorts service
 
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near MeBook Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Meanamikaraghav4
 
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...noor ahmed
 
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...Apsara Of India
 
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130Suhani Kapoor
 
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...noor ahmed
 
Call Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service NashikCall Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...rahim quresi
 
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goa
Call Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls GoaCall Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls Goa
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goasexy call girls service in goa
 
Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448ont65320
 
↑Top Model (Kolkata) Call Girls Salt Lake ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Salt Lake ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Salt Lake ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Salt Lake ⟟ 8250192130 ⟟ High Class Call Girl...noor ahmed
 
👙 Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Serviceanamikaraghav4
 
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...noor ahmed
 

Recently uploaded (20)

Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
 
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
 
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
 
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
VIP Call Girls Sonagachi - 8250192130 Escorts Service 50% Off with Cash ON De...
 
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
 
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near MeBook Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
 
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
 
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
 
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
 
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
 
Call Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service NashikCall Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
 
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
 
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goa
Call Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls GoaCall Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls Goa
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goa
 
Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448
 
↑Top Model (Kolkata) Call Girls Salt Lake ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Salt Lake ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Salt Lake ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Salt Lake ⟟ 8250192130 ⟟ High Class Call Girl...
 
👙 Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
 
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
 

Normalisation lesson plan

  • 1. Normalisation Paulene Fatemah Brian Mohamed
  • 2. ORDER CARD Orders Order No: Order Day Customer No Customer Name Customer Address Item No Name Qty Price Total Total Amount:
  • 3. Benefits for creating a database? Fast Queries Flexibility Multiple Users Longevity Portability
  • 4. 3 Steps Orders Order No: 001 Order Day 24/01/11  Identify the Customer No: 501 candidate keys? Customer Name: Jeff Blogs Customer Address: 34 Street  Select the Item Name Qty Price Total primary key No 110 Pizza 1 £2.00 £2.00  Apply 111 Chips 4 £1.00 £4.00 Normalisation Total Amount: £6.00
  • 5. Normalisation A set of rules to ensure a database is ordered in the best possible way Removal of data redundancy Integrity
  • 6. 1st Normal Form  No repeating elements/groups/data
  • 7. Orders Order No: 001 Total Order Day 24/01/11 Amount Customer No: 501 Order Day Customer Name: Jeff Blogs Orders Customer Address: 34 Street ItemNo OrderNo - PK Item Name Qty Price Total Item Name No Item Qty Customer Customer No Name 110 Pizza 1 £2.00 £2.00 Item Price 111 Chips 4 £1.00 £4.00 Customer Item Total Address Total Amount: £6.00
  • 8. 1NF? Order Order Cust Cust Cust Item Item Item Item Item Total No Day No Name Addrs No Name Qty Price Total Amnt 001 24/01/ 501 Jeff 34 110 Pizza, 1, £2.00 £2.00 £6.00 11 Blogs Street 111 Chips 4 £4.00 £4.00 002 24/01/ 502 Fred 20 110 Pizza 2 £2.00 £4.00 £4.00 11 Luke Road Remember:  No repeating elements/groups/data
  • 9. Interactive Task  Using the cards on your desk , stand up and organise yourselves into 1NF. Remember:  Whenever u fail a Normal Form, u must create a new entity.  No repeating elements/groups/data
  • 10. 1NF Orders - Table OrderNo OrderDay Cust No Cust Name Cust Address 001 24/01/11 501 Jeff Blogs 34 Street 002 24/01/11 502 Fred Luke 20 Road Order Items - Table OrderNo ItemNo Item Name Item Price Item Qty Item Amount 001 110 Pizza £2.00 1 £2.00 001 111 Chips £1.00 4 £4.00 002 110 Pizza £2.00 2 £4.00
  • 11. What do you do when you fail in 1NF?  Create a new entity  The new entity will have a concatenated primary key Orders - Table OrderNo OrderDay Cust No Cust Name Cust Address Order Items - Table OrderNo ItemNo Item Name Item Price Item Qty Item Amount

Editor's Notes

  1. Paulene:We’ll be talking about normalisation and going through to 1st Normal Form.The best example would be to look at a physical adaptation of data and what happens to it.Show an example of a physical order card on the board – explain that we cannot just dump this into a file in a drawer, to prevent searching through files and files of paper, this should be put into a database to help with: (ask the class what the benefits would be): IE: Fast Queries, Multiple Users, Portability, Flexibility, LongevityLet them come up with some suggestions and then go onto next slide...
  2. Briefly sum up these points or if the class guessed most of these correctly then probably just read them out again.
  3. How do we turn this Order Card into an actual database design?3 Steps1.      Identify the candidate keys2.      Select the primary key3.      Apply NormalisationIntroduce Mo...Mo:Each one of these fields is better known as a data element/attributeThe reason we call it a key is it becomes a key to that record – to finding that person, etc...Which of them, if any or how many of them are uniquely identified? Meaning no other order could have the same value.Can u find a candidate key in this example?IE...Order Number would be a candidate key (no other order could have the same value)If there’s more than 1 candidate key, the winner would be the Primary Key (this is the element that would be used to find records) The selection of the winner is usually determined by which one is used more often to find records.Its also used to link 1 database to another.(May need to explain why customerNo & itemNo are not candidates in this example – if anyone asks) (1 order = 1 customer, 1 order = Many Items) Items is repeating)The last key that we’ll talk about later is the foreign keyIf we were to define the relationship between 1 db and another, what always must be true is that there must be 1 common data element between them to form a relationship.Typically, u’ll see that duplicate element is between primary keys, they point to each other, they have a linkage and that's what creates the relationship itself.Sometimes, as you’ll see today, there are relationships that we want to form between 2 tables that do not have that natural link and thus we must create one. – Which is what we call the foreign key.
  4. Then we need to apply Normalisation – so what is this?Talk about removal of data redundancyTalk about IntegrityThis will become clearer as we go through an example in the next lessonIntroduce Brian...
  5. In order for a database to achieve 1NF, there must be no repeating elements.It is very difficult to understand how Normalisation works from this description, this is why learning how to apply normalisation is such a challenge.
  6. A file in logical modelling is basically called an entity.Data Elements are called Attributes.OrderNo would be PK –Explain Dependency. OrderNo is basically controlling all of the other attributes. IE: If the key changes, all of the other elements change with it. A change in order number changes the record we are looking at.Graph on right:We have a logical view of the form, showing the primary key and with its non-key attributes surrounding it.
  7. In table format:Are we in 1NF?1NF says no repeating elementsDo we have repeating elements? – YES!Item No, Item price, Item Qty, etc...are a repeating groupWe failed 1NF which means we have an integrity problem.Whenever u fail a Normal Form, u must create a new entity. ...Introduce Fatemah...
  8. Class were handed an attribute (data element) each at beginning. Now they are to stand up and organise themselves into 1NF.
  9. Show on board if they’ve got it right – and ask one of them to explain their reasoning. Congratulate if they were close or got it right and then explain the above on next slide...
  10. What do we do when we fail in NF?The 1st Rule!Create a new entityWhenever u fail a 1NF, the new entity will have what is known as a concatenated primary key. Part of this rule is that the new primary key will be a concatenation from the entity that failed, which is the OrderNo.So we will take Order no and concatenate it with ItemNo. So the new entity will be called orderItemsPrimary Key is: OrdernNo, ItemNo1stEnity will keep the orders2nd Entity will have all of the items associated with that orderWhat we’ve discovered is that ItemNo is not a non keyed attribute – it is part of a primary key and therefore the elements that depend on it must go with it (ItemName, ItemPrice, ItemQty, ItemAmount)These are all dependencies of the itemNo.We now have 1NF!! Conclusion:You can also break this down further up to 3NF, which is the industry standard.Any more – come see us!