sql - Table structure of a student -


i want table structure can store details of student below format.

if student in 10 th standard -> need aggregate % 1st standard 9th standard. 5 th standard -> need aggregate % 1st standard 4th standard. 1 st standard -> no aggregate % has displayed.

and important thing ' need use 1 table'. please form table structure no redundant values.

any ideas appreciated......

no friends not home work. asked in oracle interview, conducted in hyderabad day before yesterday '24th july, 2010',. asked me table structure.

he did not asked me query. asked me how design table. please advice me.

id | name | grade | aggregate 

this trick, id primary key, name students first last name, grade grade in , aggregate aggregate % based on grade.

fro example rows might be: 10 | bill cosby | 10 | 90 11 | jerry seinfeld | 4 | 60 

bill cosby have aggregate percent of 90 in grades 1-9, , jerry have 60 in grades 1-3. in case 1 table , boils down managing rule of aggregation table, since has 1 table.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -