Hi friends,
This sql is not using index in spite of using an index hint..can u please help me...
select /*+ index(listing LISTINGU1 LISTING_IDX6) */ 'status', count(distinct(l.listing_id)), l.status
from listing l, noah_user_plan n where
l.company_id=n.company_id and
l.actual_end_time >= '&START_DATE' and
l.actual_end_time < '&END_DATE' and
l.status not in ('N', 'EM', 'X') and
-- nvl(l.imported_from_mkt, 'N') = 'N' and
l.run_postsale = 'Y' and
l.marketplace_id < 5 and
n.activation_date <= l.date_added and
n.expiration_date >= l.date_added and
n.plan_component_id in (500, 110000, 120000, 130000, 150000)
group by l.status;
Bookmarks