views:

50

answers:

2

Hi,

I have a list of grades that students received. Each student appears multiple times in the table. How do I produce a list of all the students with their average grade?

P.s. I've tried looking at previously asked questions to see if I can find something relevant, but with no luck.

+2  A: 

Look up the AVG function and the GROUP BY clause.

dan04
A: 

Since it's homework . . .

You are basically trying to aggregate data in SQL. Try googling along those lines.

Phil Sandler