ROLLUP (Grand total)
select department_id , sum(salary)
from hr.employees
group by rollup(department_id)
//
select department_id ,E.JOB_ID, sum(salary)
from hr.employees e
group by rollup(department_id,e.job_id)
--• Business Solutions: --• Enterprise ERP, Database Management & IT Infrastructure --• AI, Cloud
https://www.linkedin.com/pulse/building-real-time-database-monitoring-dashboard-oracle-khaleeq-tpwxf/
No comments:
Post a Comment