MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Index - DB2 tables

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
mnandakumar
Beginner


Joined: 09 May 2007
Posts: 22
Topics: 14

PostPosted: Tue Sep 11, 2007 12:11 am    Post subject: Index - DB2 tables Reply with quote

Hi,

Following is the index (col1,col2,col3) created on the table TABLE1.In the query col1 and col2 are used in joins and col3 is used in where clause. Whether the index scan takes place or table scan takes place ?

Is it possible to use the index columns in joins as well as where clause?
It would be great help if someone provides me some material on index.

Thanks in advance
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Tue Sep 11, 2007 8:12 am    Post subject: Reply with quote

mnandakumar,

Check this link which explains FAQ For Evaluating SQL queries

http://www.mvsforums.com/helpboards/viewtopic.php?t=587&highlight=index+match


Once you are done with explain Check this link which will answer your queries

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPJ12/6.4.2?DT=20050328013405

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group