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))