dbTalk Databases Forums  

"Not in" subquery

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss "Not in" subquery in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Amritha.Datta@gmail.com
 
Posts: n/a

Default "Not in" subquery - 06-06-2007 , 03:23 PM






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


Reply With Quote
  #2  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: "Not in" subquery - 06-06-2007 , 03:44 PM






On Jun 6, 3:23 pm, Amritha.Da... (AT) gmail (DOT) com wrote:
Quote:
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
Cross-posting doesn't help you get a faster response.


David Fitzjarrell



Reply With Quote
  #3  
Old   
Amritha.Datta@gmail.com
 
Posts: n/a

Default Re: "Not in" subquery - 06-06-2007 , 03:46 PM



On Jun 6, 4:44 pm, fitzjarr... (AT) cox (DOT) net wrote:
Quote:
On Jun 6, 3:23 pm, Amritha.Da... (AT) gmail (DOT) com wrote:



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

Cross-posting doesn't help you get a faster response.

David Fitzjarrell
Sorry. Please help me as it is urgent requirement.

Sorry again!

Thanks



Reply With Quote
  #4  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: "Not in" subquery - 06-06-2007 , 03:58 PM



On Jun 6, 3:46 pm, Amritha.Da... (AT) gmail (DOT) com wrote:
Quote:
On Jun 6, 4:44 pm, fitzjarr... (AT) cox (DOT) net wrote:





On Jun 6, 3:23 pm, Amritha.Da... (AT) gmail (DOT) com wrote:

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

Cross-posting doesn't help you get a faster response.

David Fitzjarrell

Sorry. Please help me as it is urgent requirement.

Sorry again!

Thanks- Hide quoted text -

- Show quoted text -
"Urgent" is not a newsgroup mantra. If this truly IS 'urgent'
possibly you should pay a consultant to work on this on-site.


David Fitzjarrell



Reply With Quote
  #5  
Old   
Amritha.Datta@gmail.com
 
Posts: n/a

Default Re: "Not in" subquery - 06-06-2007 , 04:11 PM



On Jun 6, 4:58 pm, fitzjarr... (AT) cox (DOT) net wrote:
Quote:
On Jun 6, 3:46 pm, Amritha.Da... (AT) gmail (DOT) com wrote:



On Jun 6, 4:44 pm, fitzjarr... (AT) cox (DOT) net wrote:

On Jun 6, 3:23 pm, Amritha.Da... (AT) gmail (DOT) com wrote:

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

Cross-posting doesn't help you get a faster response.

David Fitzjarrell

Sorry. Please help me as it is urgent requirement.

Sorry again!

Thanks- Hide quoted text -

- Show quoted text -

"Urgent" is not a newsgroup mantra. If this truly IS 'urgent'
possibly you should pay a consultant to work on this on-site.

David Fitzjarrell
Ok. My apologies!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.