Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Cumulative sum in a Select Statement

Cumulative sum in a Select Statement

From: Bernard Brault <bbcc_at_istar.ca>
Date: 1997/03/19
Message-ID: <5go06l$n3q@news.istar.ca>#1/1

How can I do a cumulative sum for a given numeric column using the SELECT statement. For instance,

values CumulativeSum

  1	     1	
  2	     3
  3          6
  4         10

Any idea ?

Thanks.

Bernard.
bbcc_at_istar.ca Received on Wed Mar 19 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US