hey everyone, please try to help a little.
i have DB with 2 tables:
1).grades- the columns are: id, student_name, grades, school_year,
2).students-the columns are: id, student_name
of course in the grades table student name repeats more than once (1-to-many relationship).
i need a query that show the max average for every student grades. for example: dan gained the following grades: 80, 60, 98.
grace gained: 60, 60,70.
is there any way to create a query that will calculate the averages for every student and finally show the max average?
(dan grades average is 79, while grace's is 63.3
it is very important that all the grades will be in one column, so i can't split the tables in other way..
i need to write a query that will show the max average (which in that case is 79) and the student name that has that average.
is it possible in someway to do it?
tnx a lot!!!
(ps. the DB is attached - i'll be grateful for any example)