LetCode-MSSQL超过5名学生的课

image.png

此图关键在于去重后使用having count查询出大于5的值

select class from courses group by class having count(distinct student) >= 5;
posted @ 2020-04-03 17:30  Bluegoing  阅读(1)  评论(0编辑  收藏  举报  来源