MySQL Forums
Forum List  »  Newbie

Re: select 10 highest results
Posted by: Chis Florinel
Date: August 23, 2005 08:31AM

see this:
SELECT lem1, lem2, max(smc) AS max_smc FROM smc GROUP BY lem1, lem2;
how many results are returned now?

I think it might be a good idea to post what you actually want to do, maybe that group by condition is not the right one, and you put that just so you could use sum()...

Options: ReplyQuote


Subject
Written By
Posted
August 23, 2005 07:54AM
Re: select 10 highest results
August 23, 2005 08:31AM
August 23, 2005 08:50AM
August 23, 2005 08:53AM


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.