Oracle分组查询2——cube     和rullup一样  只是结果维度更多了!

eg.按工龄、部门、职务 从大到小 查询工资和


select to_char(b.hiredate) as 上班日期,a.dname as 部门,b.job as 职务,sum(b.sal) sum_sal from dept a, emp b

where a.deptno=b.deptno group bycube(

 to_char(b.hiredate),a.dname,b.job)

Oracle分组查询2-CUBE

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-09-08
  • 2021-09-14
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2022-02-03
  • 2021-05-08
  • 2021-06-07
  • 2022-12-23
相关资源
相似解决方案