赞
踩
1)案例实操:
- hive (default)> select t.deptno, avg(t.sal) avg_sal from emp t group by
- t.deptno;
- hive (default)> select t.deptno, t.job, max(t.sal) max_sal from emp t
- group by t.deptno, t.job;
hive (default)> select deptno, avg(sal) from emp group by deptno;
- hive (default)> select deptno, avg(sal) avg_sal from emp group by deptno
- having avg_sal > 2000;
参考b站视频:38分钟学会SQL语句sql_哔哩哔哩_bilibili
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。