dbTalk Databases Forums  

composite in clause

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss composite in clause in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Herb
 
Posts: n/a

Default composite in clause - 05-13-2011 , 01:48 PM






will DB2 use the index for a SQL like this?
i have an index on the A table like this +ORD_NBR+LD_STP_NBR
+REC_STT

Select .....
from .....
where .....

OR ((A.ORD_NBR , A.LD_STP_NBR) IN

( SELECT AA.ORD_NBR, B.LD_STP_NBR From........)

Reply With Quote
  #2  
Old   
Tonkuma
 
Posts: n/a

Default Re: composite in clause - 05-13-2011 , 06:55 PM






You can check by yourself using explain functionalities of DB2.

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.