sql语句的执行顺序 (1)from 选取数据源; (2)where 筛选数据源; (3)group by 将筛选的数据源分组; (4)使用聚集函数计算; (5)having 筛选分组的数据; (6)计算表达式; (7)order by 排序;