Db2curiosity
Programmer
Hi,
1> i have a composite index I1 on column A,B,C,D,E out of which A,B is present in where clause and column D is also present in where clause but with a <> operator.
The query plan is showing INDEX I is being used still the query is kind of slow ... any tips for improving?
by the way ,i have another index I2 on that same table say
on column entry_dt only..
2>When i add a REDUNDANT where clause "and entry_dt= entry_dt" the query starts using I2 and gets processed much faster ( almost 5 times ) ...
can anyone explain wy this is happening ? though finally i cant use I2 because column entry_dt has null values so that redundant clause will hamper my query results
Need advise and help...!!
1> i have a composite index I1 on column A,B,C,D,E out of which A,B is present in where clause and column D is also present in where clause but with a <> operator.
The query plan is showing INDEX I is being used still the query is kind of slow ... any tips for improving?
by the way ,i have another index I2 on that same table say
on column entry_dt only..
2>When i add a REDUNDANT where clause "and entry_dt= entry_dt" the query starts using I2 and gets processed much faster ( almost 5 times ) ...
can anyone explain wy this is happening ? though finally i cant use I2 because column entry_dt has null values so that redundant clause will hamper my query results
Need advise and help...!!