简体   繁体   中英

How to find an average grade for each student with SQL

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?

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

查找AVG函数和GROUP BY子句。

Since it's homework . . .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM