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 -> a simple sql question

a simple sql question

From: Joseph Chang <chinastorm_at_bigfoot.com>
Date: Fri, 3 Dec 1999 16:18:25 +0800
Message-ID: <827tp8$1e15$1@news.cz.js.cn>


i have a table looks like that:

  Store_id     Amt.
   D0            1000.00
    D1            500.00
    D2            400.00

Now i want to update that table, the Total Amt should minus 1300.00 My means is after update, the table should looks like:

  Store_id     Amt.
   D0               600 .00
    D1                0.00
    D2                0.00

(1000.00+500.00+400.00)-1300.00 =600.00 Is is possible use one sql to update?
tks for any suggestion. Received on Fri Dec 03 1999 - 02:18:25 CST

Original text of this message

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