Friday, March 19, 2021

Oracle Sql Most uses Function

 


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)


No comments:

Post a Comment

 https://www.linkedin.com/pulse/building-real-time-database-monitoring-dashboard-oracle-khaleeq-tpwxf/