select class from Courses group by class
having count(student)>=5;
group by 之后 可以使用聚合函数
where 优先级高于 group by 无法使用聚合函数
having 优先级低于 group by 可以使用聚合函数
select class from Courses group by class
having count(student)>=5;
group by 之后 可以使用聚合函数
where 优先级高于 group by 无法使用聚合函数
having 优先级低于 group by 可以使用聚合函数