oracle之sql总结2之groupby having ,where in 别名排序

oracle之sql总结2之groupby having ,where in 别名排序

1、select avg(sal) , max(sal) ,deptno from emp group by deptno;

2、     select avg(sal) , max(sal) ,deptno,job from emp group by deptno,job;

3、     select avg(sal) ,deptno from emp group by deptno having avg(sal)<2000;

 

相关文章:

  • 2021-12-16
  • 2021-08-22
  • 2021-10-07
  • 2021-05-21
  • 2021-05-29
猜你喜欢
  • 2021-12-18
  • 2021-05-29
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案