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

Home -> Community -> Usenet -> c.d.o.server -> Re: how do I rewrite this query optimized

Re: how do I rewrite this query optimized

From: LKBrwn_DBA <member30625_at_dbforums.com>
Date: Mon, 21 Jul 2003 21:22:41 +0000
Message-ID: <3135757.1058822561@dbforums.com>

You could try using a view:

update (Select re.pk1col1

, re.pk1col2
, re.paid re_paid
, p.pt_fk1col1
, p.pt_fk1col2
, p.rtype p_rtype
From re, p where re.pk1col1 = p.pt_fk1col1 and re.pk1col2 = p.pt_fk1col2) set re_paid = (re_paid + decode(P_rtype ,'xx', (-1 * P_pt_amt) ,'yy', (-1 * P_pt_amt)));
--
Posted via http://dbforums.com
Received on Mon Jul 21 2003 - 16:22:41 CDT

Original text of this message

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