1. where 后不能跟聚合函数,但是 having 可用于 group by 分组之后结果集的过滤
    2. where 能做的 having 都可以做
    3. 分组之前条件过滤用 where,之后使用 having