查询不及格人数超过1人的班级
SELECT a.classId 不及格人数超过1人的班级, a.num 不及格人数 FROM (select classId, count(*) num from score where score <= 60 GROUP BY classId) a where a.num>1;
是要这样的效果吗?