Query in DW dont use index
Hi,
11.2.0.2
I have a query in our datawarehouse that dont uses indexes and takes for ever to complete. I have gathered stats on the MFT_SALE_MRKT (129 million rows).
MDV=view, MDT=table
I have the query below, when I dont filer on country (when this row is not being used, commented out: AND ( MDV_LOC_MRKT.MRKT_DSPL_NAME )= '01 SWEDEN' -- or ('All' IN ('01 SWEDEN')) ) then the optimizer uses the indexes
on table MFT_SALE_MRKT. But when I filter on country the optimizer uses a full table scan.
What can I do to make the optimizer use the indexes that are avilable?