Reputation: 758
I have a query like this -
SELECT COUNT(DISTINCT c.y_no)
FROM xyz c
WHERE c.xdate>='2013-09-01';
Because of DISTINCT, my query taking too much time. This query scanning around 150 million records. I already have index on xdate. Please suggest me something faster.
Thank you.
Upvotes: 1
Views: 609