query too slow due to distinct keyword
hi all,
I am slelect data from a table which has millon of rows works fine with where and etc because of index
but if i apply distinct keyword in start it take long time to execute..
is there any way to make it fast..
the query is
select ordr_code,ordr_date from orders << fast
select distinct ordr_code,ordr_date from orders << fast