Saturday, 4 July 2015

SCRIPTS :

Run the following script :


Example of a CROSS MATRIX report implemented using standard SQL.

SELECT job,
                sum(decode(deptno,10,sal)) DEPT10,
                sum(decode(deptno,20,sal)) DEPT20,
                sum(decode(deptno,30,sal)) DEPT30,
                sum(decode(deptno,40,sal)) DEPT40
           FROM scott.emp
       GROUP BY job
/



No comments:

Post a Comment