sql 获得各科最高分成绩和人数

examination表,字段为id, name, course, score,查询每门课的最高分和人数

select  course,score,count(*)count  from
(select * from examinatioin a where score=(select max(score) from examinatioin b where b.course=a.course))

原文地址:https://www.cnblogs.com/yunyunde/p/9041073.html