聚合函数可以忽略空值,并直接卸载到where之后
sum(Salary ) :工资总额
Avg (销售) :平均薪金
最大(销售) :最大工资
最小(salary ) :最低工资
计数(salary :工资不是空值的数据;聚合函数不计算空值) ) )。
清除Distinct name:同名的人
Having过滤:
选择作业,AVG(Salary ) fromEMPgroupbyjobhavingAVG ) Salary ) 10000; 查询工资超过10000的工作
select * fromxxxlimitxxxwherexxxgroupbyxxhavingxxxorderbyxxx
from:文件从文件加载到内存中
where:处理复合条件数据查询并生成临时表
group by :分割临时表
having :筛选不符合条件的临时表
select :装入临时表
order by :对选择读取的临时表进行排序,生成I虚拟的临时表
limit:截断与最终临时表相对应的行
union合并结果