聚集函数count max min sum avgcount(*)会统计null行,count列名则不会
分组group by
过滤分组havingwhere能做的having都能做,并且where不能使用聚集函数,但是having能够使用