Query in Oracle for running sum

后端 未结 1 576
夕颜
夕颜 2021-01-28 02:48

I need to pull the result set with sum of the previous record and current record.

Logic

My table is having one key column C1 and a numeric colum

相关标签:
1条回答
  • 2021-01-28 03:35
    select c1, c2, sum(c2) over (order by c2) c3
      from table_name
    
    0 讨论(0)
提交回复
热议问题