MySQL Forums
Forum List  »  Optimizer & Parser

Re: Query with GROUP BY (Using index for group-by -> Using index)
Posted by: KimSeong Loh
Date: November 30, 2006 08:18PM

Try this
SELECT i, n, t, v FROM shn1 AS outer WHERE i = (SELECT MAX(i) FROM shn1 WHERE n=outer.n);

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Query with GROUP BY (Using index for group-by -> Using index)
3610
November 30, 2006 08:18PM


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.