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: sql query on subtract

RE: sql query on subtract

From: Thomas, Kevin <Kevin.Thomas_at_calanais.com>
Date: Fri, 26 Jul 2002 02:58:26 -0800
Message-ID: <F001.004A320F.20020726025826@fatcity.com>


Are you just trying to strip off the leading 1?

-----Original Message-----
Sent: 26 July 2002 10:43
To: Multiple recipients of list ORACLE-L

How to substract my s_sum column in sql statement ?

S_MONTH S_SUM
--------------- ----------

JAN                   1000
FEB                   1200
MAR                   1250

I want the result should look like this :

S_MONTH S_SUM
--------------- ----------

JAN                   0
FEB                   200
MAR                   50

Any idea please?

Thanks,
Jonny


 

<http://uk.yahoo.com/mail/tagline_xtra/?http://uk.docs.yahoo.com/mail_storag
e.html> Get a bigger mailbox -- choose a size that fits your needs.  

<http://uk.yahoo.com/mail/tagline_xtra/?http://uk.docs.yahoo.com/mail_storag
e.html> http://uk.docs.yahoo.com/mail_storage.html

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Thomas, Kevin
  INET: Kevin.Thomas_at_calanais.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Fri Jul 26 2002 - 05:58:26 CDT

Original text of this message

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