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
приведенный выше выбор возвращает мне следующее.
id  SomeNumt
1   10
2   12
3   3
4   15
5   23
Как получить следующее
id  srome   CumSrome
1   10  10
2   12  22
3   3   25
4   15  40
5   23  63