[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 02-26-2005, 04:26 PM   #1 (permalink)
NamePros Member
 
Join Date: Jan 2005
Posts: 30
66.00 NP$ (Donate)

neoone is an unknown quantity at this point


Database Normalisation

I have some fiedls and i woant to know what they will be like in 1st and 2nd normal form?
I can do them in 3rd.

thanks

here are the fields:

Student Middle Name
Student Date of Birth
Student ID
Student Address
Student Address 2
Student City/Town
Student County
Student Postcode
Student Parent name
Student Telephone
Student Parent Mobile
Student Parent 2 Name
Student Parent 2 Address
Student Parent 2 Address 2
Student Parent 2 City/Town
Student Parent 2 County
Student Parent 2 Post Code
Student Parent 2 Telephone
Student Parent 2 Mobile
Emergency Contact Name Relationship
Address
Address 2
City/Town
County
Postcode
Telephone
Mobile
Student previous school
Student Form Tutor
Student Subjects taken
Student Subject groups
Student subject sets
Tutor First Name
Tutor Initials
Tutor Surname

Thanks
neoone is offline  
Old 02-27-2005, 05:56 AM   #2 (permalink)
NamePros Member
 
Join Date: Jan 2005
Posts: 30
66.00 NP$ (Donate)

neoone is an unknown quantity at this point


does anyone know hoe to do normalisation?

thanks
neoone is offline  
Old 02-27-2005, 06:30 AM   #3 (permalink)
Senior Member
 
superprogrammer's Avatar
 
Join Date: Aug 2004
Location: Washington
Posts: 4,319
0.13 NP$ (Donate)

superprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud of


What do you need exactly?
__________________
Download youtube videos at www.HugYouTube.com and free domains list atwww.FreeDroplists.com
Anonymous access at www.Banned.net
superprogrammer is offline  
Old 02-27-2005, 08:21 AM   #4 (permalink)
col
NamePros Regular
 
col's Avatar
 
Join Date: Jan 2005
Location: Land of the m00
Posts: 723
140.10 NP$ (Donate)

col is just really nicecol is just really nicecol is just really nicecol is just really nice


Why do you need them in 1st or 2nd normal form?

1NF:
"A Relation in which the intersection of each row and column contains one and only one value"


2NF:
"A relation that is in the first normal form and every non-primary-key attribute is fully functionally dependent on the primary key"
__________________
The more I think
the more confused I get...

Last edited by col; 02-27-2005 at 08:25 AM.
col is offline  
Old 02-27-2005, 08:45 AM   #5 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (Donate)

adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough

Breast Cancer
your tables wont be normalised unless you move the tutor info to a new table

one of the factors of normalisation is that you atomise the data and that it doesnt repeat. your tutor information will repeat.

move the tutor feilds to a new table
give each tutor an id
make "tutor ID" feild in data table
and link to them there it saves having your data replicated and when it comes to change details etc for tutors you wont be required to go through each row on the table

you could probably do the same for these as well

Student previous school
Student Form Tutor
Student Subjects taken
Student Subject groups
Student subject sets

others students in the same dbase will obviously be in the same sets, groups etc etc so use a unique id to indentify these

also is your student id going to be a unique number that can idenfify each row on the table?

also just a little nit pick i guess but your making the asumtion that everyone has a parent, not everyone does it might be an idea to replace "parent" to guardian or something similar.
adam_uk is offline  
Old 02-27-2005, 09:27 AM   #6 (permalink)
NamePros Member
 
Join Date: Jan 2005
Posts: 30
66.00 NP$ (Donate)

neoone is an unknown quantity at this point


Thanks a lots
I will update you with what i come up with

thanks
neoone is offline  
Old 03-03-2005, 03:42 PM   #7 (permalink)
NamePros Member
 
Join Date: Jan 2005
Posts: 30
66.00 NP$ (Donate)

neoone is an unknown quantity at this point


Here is what i have come up with, tell me if it can be improved or something.

Student ID
Student First Name
Student Middle Name
Student Surname
Student Date of Birth
Previous School ID
Teacher ID
Student Address
Student Address 2
Student City/Town
Student County
Student Post Code
Telephone
Mobile
Contact Name
Relationship ID

Contact ID
Contact Student ID
Contact Relationship ID
Contact Name
Contact Address
Contact Address 2
Contact City/Town
Contact County
Contact Post Code
Contact Telephone
Emergency Contact
Mobile

Student Previous ID
Student previous school

Student ID
Student Subjects taken ID
Student Subject groups
Student Subject sets ID


Teacher ID
Teacher Form
Teacher First Name
Teacher Initials
Teacher Surname

Relationship ID
Relationship Name

Report ID
Subject ID
Comment
Completed

Report ID
Student ID
Term

Subject Set ID
Subject Set name

Subject ID
Subject Name

Subject Group ID
Subject ID
Subject Set ID
Teacher ID
Class


Thanks
neoone is offline  
Old 03-05-2005, 05:29 AM   #8 (permalink)
NamePros Member
 
Join Date: Jan 2005
Posts: 30
66.00 NP$ (Donate)

neoone is an unknown quantity at this point


Just wondering if anyone know how to check if the above is normalised to around 3rd normal form?and if it is.


thanks
neoone is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:06 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85