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: Update statement question

RE: Update statement question

From: Harvinder Singh <Harvinder.Singh_at_MetraTech.com>
Date: Mon, 16 Aug 2004 14:02:32 -0400
Message-ID: <D6424CD4C8A3C044BBC49877ED51C5187D92E4@ex2003.metratech.com>


I copy and paste simple sql statement without the =3D3D but somehow it = was
added when posted ...here is the statement again (hopefully without extra syntax):

update tab1
set tab1.col1 =3D tab1.col1 + summ.col1,tab1.col3 =3D case when = tab1.col3 =3D
'A' and (tab1.col1 + summ.col1) >=3D tab1.col5 then 'C' else tab1.col3 = end
from tab1 inner join tab2 summ on tab1.col3 =3D summ.col3

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Gogala, Mladen Sent: Monday, August 16, 2004 1:55 PM
To: 'oracle-l_at_freelists.org'
Subject: RE: Update statement question

You could try without the "=3D3D" part. It doesn't serve any=20 discernible purpose.

--
Mladen Gogala
Oracle DBA
email:mladeng_at_aetvn.com
Ext: 9787



> -----Original Message-----
> From: Harvinder Singh [mailto:Harvinder.Singh_at_MetraTech.com]=20
> Sent: Monday, August 16, 2004 1:47 PM
> To: oracle-l_at_freelists.org
> Subject: Update statement question
> on tab1.col3 =3D3D summ.col3
>=20
> How can I rewrite this in oracle?
>=20
> Thanks
> --Harvinder
---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------
Received on Mon Aug 16 2004 - 12:58:12 CDT

Original text of this message

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