Id name salary 1 A 100 2 B 200 3 A 100 4 C 700 5 D 600 6 C 700
name salary sumofsalary A 100 100 B 200 300 A 100 400 C 700 1100 D 600 1700 C 700 2400
select e.name,e.salary,sum(e2.Salary) sal from Emp e inner join Emp e2 on e.Id>=e2.Id group by e.Id,e.name,e.salary
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)