MySQL Forums
Forum List  »  Optimizer & Parser

How make indexes work with group by statement
Posted by: Adnan Raza
Date: September 13, 2012 12:48AM

Hi,

Whenever I use group by statement with the fields that have an index on them, the index does not work especially when group by has more than one columns.

e.g.

explain select * from temp_table
group by dt1,dt2;

is there any solution for it?

Options: ReplyQuote


Subject
Views
Written By
Posted
How make indexes work with group by statement
2260
September 13, 2012 12:48AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.