LeetCode_MySQL09_596超过5名学生的课

LeetCode_MySQL09_596超过5名学生的课_第1张图片

select class from courses 
group by class 
having count(DISTINCT student) >= 5;

你可能感兴趣的:(LeetCode刷题,leetcode)