Pages
Home
Oracle Apps
Downloads
Search This Blog
Friday, September 7, 2012
Query for job wise and dept wise total salary
select job,sum(sal) Totsal,sum(decode(deptno,10,sal)) "Deptno10"
,sum(decode(deptno,20,sal)) "Deptno20"
,sum(decode(deptno,30,sal)) "Deptno30"
from emp group by job;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment