【转】SQL中having语句的作用

having称为分组滤过条件,也就是说是分组需要的条件,所以必须与group by联用
也就是说,聚合函数计算的结果可以当条件来使用,因为它无法放在where里,只能通过having这种方式来解决。

引自:http://zhidao.baidu.com/question/406745181.html

原文地址:https://www.cnblogs.com/La5DotNet/p/2784079.html