What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Database Normalisation

Database Normalisation
Author: Message:
mwe99
Veteran Member
*****

Avatar

Posts: 2514
Reputation: 67
36 / Male / Flag
Joined: Jul 2004
O.P. Database Normalisation
Anyone good at it? Cos im stuck :P

code:
1NF
Order Number
Customer Number
Customer
Street
District
Town
Postcode
Contact Number
-
Device Number
Device Name/Description
Unit Price
Quantity Ordered
Description
Device Price
-
Component Number
Component Type
Component Name
Component Price   

Any help where i go to normalise to 2NF?



This post was edited on 02-27-2006 at 11:37 AM by mwe99.
02-27-2006 11:33 AM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Database Normalisation
Remember:
1NF: They Key
2NF: The Whole Key
3NF: Nothing But The Key

To convert to 2NF, where you have Order Number and Customer Number, move Order Number to a separate table that links to Customer Number.
code:
2NF
Order Number
Customer Number
-
Customer Number
Customer
Street
District
Town
Postcode
Contact Number
-
Device Number
Device Name/Description
Unit Price
Quantity Ordered
Description
Device Price
-
Component Number
Component Type
Component Name
Component Price   

Edit: Though I must say your table design lacks full and thorough thought.

This post was edited on 02-27-2006 at 12:14 PM by RaceProUK.
[Image: spartaafk.png]
02-27-2006 12:13 PM
Profile PM Web Find Quote Report
mwe99
Veteran Member
*****

Avatar

Posts: 2514
Reputation: 67
36 / Male / Flag
Joined: Jul 2004
O.P. RE: Database Normalisation
quote:
Originally posted by raceprouk
Remember:
1NF: They Key
2NF: The Whole Key
3NF: Nothing But The Key

To convert to 2NF, where you have Order Number and Customer Number, move Order Number to a separate table that links to Customer Number.
code:
2NF
Order Number
Customer Number
-
Customer Number
Customer
Street
District
Town
Postcode
Contact Number
-
Device Number
Device Name/Description
Unit Price
Quantity Ordered
Description
Device Price
-
Component Number
Component Type
Component Name
Component Price   

Edit: Though I must say your table design lacks full and thorough thought.

thanks , nah it was just a quick post lol
02-27-2006 12:31 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Database Normalisation
Fair enough ;)

Edit: I assume you know what the normal forms are?

This post was edited on 02-27-2006 at 07:00 PM by RaceProUK.
[Image: spartaafk.png]
02-27-2006 06:59 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On