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

Using one of the Column from the Clustering Index


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

New User


Joined: 16 Sep 2008
Posts: 1
Location: Bangalore

PostPosted: Fri Nov 07, 2008 2:03 pm
Reply with quote

Hi,
In a SELECT or UPDATE or INSERT query what happens if I use only one of the column from the clustering index as the predicate, instead of using all the columns in the it?
will that query gets executed using the index or will it perform a wild table-scan.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Nov 07, 2008 2:25 pm
Reply with quote

running your query through EXPLAIN will provide you with an answer.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts first column truncated in search result IBM Tools 13
No new posts Cobol file using index COBOL Programming 2
Search our Forums:

Back to Top