Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function-based indexes in DB2

Status
Not open for further replies.

leo6

Programmer
Mar 2, 2005
22
US
Hi ,

I have a DB2 SQL query like :

select a.col1,b.col1
from tab1 a, tab2 b
where a.col1=b.col1
and lower(a.col2) = <value>

how can i create an index on the function, lower(a.col2) so that the query uses the index.
currently index for a is on (col1,col2) but the query for a goes for a TBSCAN .
 
You need to post this in a Tek-Tips DB2 forum. This forum is specifically for Microsoft's SQL Server.

-SQLBill

Posting advice: FAQ481-4875
 
I think you need to go to the DB2 Forum.

This is for MS SQLSERVER - A product by Microsoft not Big Blue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top