Hi Masters,
how can I get total sum salary for each desg and each dept using pivot in oracle. I am using oracle11.2.
select * from (select deptno,job,sal from emp)
pivot(sum(sal) for deptno in (10,20,30));
How can I get total sum value row wise and colum wise.. Please advise...
JOB 10 20 30 Total
CLERK | 1300 | 1900 | 950 |
SALESMAN | | | 5600 |
PRESIDENT | 5000 | | |
MANAGER | 2450 | 2975 | 2850 |
ANALYST | | 6000 | |
Total
Regards
Ar