IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Alternative to NOT IN option in DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muthukannan

New User


Joined: 03 Aug 2006
Posts: 42
Location: Chennai

PostPosted: Wed Mar 07, 2007 6:25 pm
Reply with quote

Hi,

I don't want to use the NOT IN option. Do i have alternative for the same? I heard that NOT IN will reduce the efficiency.

Can any1 help me on this ?

Thanks,
Mk icon_smile.gif
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Wed Mar 07, 2007 8:47 pm
Reply with quote

There could be many ways depending on what you want to retrieve. NOT IN avoids using INDEX efficiently. This is not preferred only if you huge data in the table. There may be situations where you have to use it.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 08, 2007 2:47 am
Reply with quote

Hello,

Please post what your requirement is. You've posted that you'd like an alternative to "NOT IN", but knowing what you need to accomplish would be helpful in generating suggestions.

Include some sample info about what you want to include/exclude. Include how many rows the table has and maybe an estimate of how many rows will be excluded/included.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts CICS vs LE: STORAGE option CICS 0
No new posts INSYNC option with same function as I... JCL & VSAM 0
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top