> > Please, I have searched IBM.com for info on this question and found
little, if you are aware can you please tell me where ibm may have
documented this capability?
Thanks Again, Stan
Try the manuals. The Explain facility shows the access path of an SQL
statement and there should be some information about what happens in the
explain output (rows in the PLAN_TABLE) if multiple indexes are used on
one table.
Using the explain is the only way you can know for sure if DB2 will use
both indexes for a particular query, even if DB2 is capable of doing so. Make
sure you first do a table reorg and then run runstats utility and ask for
detailed specifications. Then do the explain.
I found it for you. In the PLAN_TABLE (updated when you do an explain),
there is column called ACCESSTYPE. Here the values of ACCESSTYPE that
pertain to multiple index access on a single table:
Value Meaning
--- ------------------------------------------
M - Start of multiple index access processing
MX - Indexes are to be scanned for later union or intersection
MI - An intersection (AND) is performed
MU - A union (OR) is performed