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

To generate a PDF using JavaScript in Oracle APEX from a collection

  To generate a PDF using JavaScript in Oracle APEX from a collection, you can follow these steps: 1. Create a button or link on your APEX p...