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 .
is there an alternative to this ??
could anyone help us on this..
Thank you.
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 .
is there an alternative to this ??
could anyone help us on this..
Thank you.