Hi all,
declare @t table
(
id int,
SomeNumt int
)
insert into @t
select 1,10
union
select 2,12
union
select 3,3
union
select 4,15
union
select 5,23
select * from @t
the above select returns me the following.
id SomeNumt
1 10
2 12
3 3
4 15
5 23
How do i get the following..
id srome CumSrome
1 10 10
2 12 22
3 3 25
4 15 40
5 23 63
TIA