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 -> "Not in" subquery

"Not in" subquery

From: <Amritha.Datta_at_gmail.com>
Date: Wed, 06 Jun 2007 13:21:39 -0700
Message-ID: <1181161299.089723.172190@g37g2000prf.googlegroups.com>


Hello,

Is there any alternative query to the below one?

update RTable set Reason = "XYZ"

            Where FKey = 1234
                and SFKey = 1
                and Reason Is Null
                and F_ID  not in ( Select F_ID from RTable
                                    Where FKey = 1234
                                    and SFKey = 1
                                    and TO_NUMBER(REL_CD) = 1
                                    and Reason Is Null);

"not in" in the above query is taking alot of time and it is timing out.

Please Advise.

Thanks Received on Wed Jun 06 2007 - 15:21:39 CDT

Original text of this message

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