596. 超过5名学生的课
select class from Courses group by class having count(distinct student)>=5;
select class from ( select class,count(distinct student) cnt from Courses group by class ) t where cnt>=5;