HI Everybody,
I have created one table called Employee.this table cantains four columns
ID,NAME,DEPTART MENT,SALARY.
Now i want out put in below mentioned format.
Emp.ID Emp.Name Dept. Salary Total Salary by Dept
1 X1 Software 5000
2 X2 Software 7000
12000
3 X3 Testing 8000
4 X4 Testing 4000
5 X5 Testing 3000
15000
6 X6 HR 2000
7 X7 HR 1000
3000
Can anyone please help to get output in this format?
Thanks in advance.
amit
I have created one table called Employee.this table cantains four columns
ID,NAME,DEPTART MENT,SALARY.
Now i want out put in below mentioned format.
Emp.ID Emp.Name Dept. Salary Total Salary by Dept
1 X1 Software 5000
2 X2 Software 7000
12000
3 X3 Testing 8000
4 X4 Testing 4000
5 X5 Testing 3000
15000
6 X6 HR 2000
7 X7 HR 1000
3000
Can anyone please help to get output in this format?
Thanks in advance.
amit
Comment