If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > General Index Question

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-26-03, 15:29
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Post General Index Question

I am playing with some of our older SQL statements and trying to tweak them but little confused by the usage of index. Sometime it uses the index sometime it does not even though columns which are part of the index are part of the sql. So, my question is there are set rule when index will be used and when not. Any link to a document will be highly appreciated.

dollar
Reply With Quote
  #2 (permalink)  
Old 08-26-03, 15:52
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,473
Re: General Index Question

Dollar,

Look here:

http://www7b.boulder.ibm.com/dmdd/li...kuznetsov.html

It explains alot.

Andy

Quote:
Originally posted by dollar489
I am playing with some of our older SQL statements and trying to tweak them but little confused by the usage of index. Sometime it uses the index sometime it does not even though columns which are part of the index are part of the sql. So, my question is there are set rule when index will be used and when not. Any link to a document will be highly appreciated.

dollar
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On