Connecting Tech Pros Worldwide Forums | Help | Site Map

design a single normalised table

Familiar Sight
 
Join Date: Oct 2008
Posts: 128
#1: Oct 3 '09
S.N.
Name of NGOs
Boys
Girls
No. of Students
Passed
Failed
Employment Status
Grant Released
i have this type of data in table format for each Finical Year(2004-05 to2009-10) kindly help me to design a single normalised table
so that i can execute different query operations on it
as i am not getting any solution
any suggestions?????????

Newbie
 
Join Date: May 2009
Posts: 16
#2: Oct 5 '09

re: design a single normalised table


You can have SNO , Name of NGO, Boys, Girls and NoofStudents in one table say
NGO_DET
and in another table you can have SNO(Ref parent NGO_DET), Student Name , Employment Status, Grant Released.

I don't know what is passed and failed I thing you can add that with the second table and instead of having No of students as a columns you can calculate it every time by using sum(Boys,Girls).
Familiar Sight
 
Join Date: Oct 2008
Posts: 128
#3: Oct 6 '09

re: design a single normalised table


Quote:

Originally Posted by jankhana View Post

I don't know what is passed and failed I thing you can add that with the second

S.N.
Name of NGOs
totalBoys
totalGirls
total No. of Students
total Passed
total Failed
Employment Status
Grant Released
Quote:
i have this type of data in table format for each Finical Year(2004-05 to2009-10) what about finantial year i have this type of data only no detailed data
kindly help me to design a single normalised table
so that i can execute different query operations on it
as i am not getting any solution
any suggestions?????????
Newbie
 
Join Date: May 2009
Posts: 16
#4: Oct 6 '09

re: design a single normalised table


You mean that Grant Released is common for all students in NGO and same is the case for the Employment status?????????
If that is so than u can directly go for one table and include one more col as financial yr which will store for which financial yr the data is!!!!!!!!!!

I hope I understood right!!!!!
Familiar Sight
 
Join Date: Oct 2008
Posts: 128
#5: Oct 7 '09

re: design a single normalised table


Quote:

Originally Posted by jankhana View Post

You mean that Grant Released is common for all students in NGO and same is the case for the Employment status?????????
If that is so than u can directly go for one table and include one more col as financial yr which will store for which financial yr the data is!!!!!!!!!!

I hope I understood right!!!!!

Quote:
yes grant goes to ngos not students.do u mean i should design like this?
S.N.
Name of NGOs
totalBoys2004-05
totalGirls2004-05
total No. of Students2004-05
total Passed2004-05
total Failed2004-05
Employment Status2004-05
Grant Released2004-05
totalBoys2005-06
totalGirls2005-06
total No. of Students2005-06
total Passed2005-06
total Failed2005-06
Employment Status2005-06
Grant Released2005-06
.
.
.
so on
isnt there any limit of columns?
Newbie
 
Join Date: May 2009
Posts: 16
#6: Oct 7 '09

re: design a single normalised table


No I mean you just include one more column called year which will have the year value i.e 2004-2005 or 2008-2009 etc so.
Table design will be like this:
Name of NGOs
totalBoys
totalGirls
total No. of Students
total Passed
total Failed
Employment Status
Grant Released
Year

So table is well maintained and has no problem in which year or which NGO and you can query it easily k....
Hope it's fine and helps you.
Familiar Sight
 
Join Date: Oct 2008
Posts: 128
#7: Oct 7 '09

re: design a single normalised table


Quote:

Originally Posted by jankhana View Post

no i mean you just include one more column called year which will have the year value i.e 2004-2005 or 2008-2009 etc so.
Table design will be like this:
Name of ngos
totalboys
totalgirls
total no. Of students
total passed
total failed
employment status
grant released
year

so table is well maintained and has no problem in which year or which ngo and you can query it easily k....
Hope it's fine and helps you.

then ngos will be repeated again and again and there will not be any primary key
Newbie
 
Join Date: May 2009
Posts: 16
#8: Oct 7 '09

re: design a single normalised table


what about students and all?????
can u give some demo of ur records so that its clear... Only name of the NGO will be repeated again and again total boys or girls and all those stuff will be different than right????????
Reply