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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Sum of Previous Record

RE: Sum of Previous Record

From: Gogala, Mladen <MGogala_at_oxhp.com>
Date: Wed, 04 Jun 2003 06:40:21 -0800
Message-ID: <F001.005A9E20.20030604064021@fatcity.com>


How about
SELECT DEBIT,CREDIT,CREDIT-DEBIT
FROM WHATEVER_THE_TABLE
WHERE CREDIT*CREDIT=-1; Mladen Gogala
Oracle DBA
Phone:(203) 459-6855
Email:mgogala_at_oxhp.com

-----Original Message-----
Sent: Wednesday, June 04, 2003 9:10 AM
To: Multiple recipients of list ORACLE-L

Hi list ,

Can you help me please .

I have a report that show data as follows :

debit     credit   balance
3                0            -3
 0               -1             2
 1                  0          3

Is their a way to get balance without using a separet query in a formula column,i .e i need the value of the previous record in the same repeating frame.

Thanks

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Walid Alkaakati
  INET: Walid.Alkaakati_at_astrolabeit.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Gogala, Mladen
  INET: MGogala_at_oxhp.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jun 04 2003 - 09:40:21 CDT

Original text of this message

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