The output that i'm getting is
deptno sum(sal)
10 8750
20 10875
30 9400
when i execute the query select deptno,sum(sal) from emp group by deptno;
I should get the total sal of each dept in such a way that output should be like this
which is below
Output:
10 20 30
8750 10875 9400
deptno sum(sal)
10 8750
20 10875
30 9400
when i execute the query select deptno,sum(sal) from emp group by deptno;
I should get the total sal of each dept in such a way that output should be like this
which is below
Output:
10 20 30
8750 10875 9400
Comment