MySQL Forums
Forum List  »  Newbie

Re: MAX and GROUP problem. Help!
Posted by: Felix Geerinckx
Date: May 19, 2005 03:35AM

359359 wrote:

> I would like to SELECT for each ELEMENT the MAX VALUE but when I am using the
> SELECT DATE, TIME, ELEMENT, MAX(VALUE)
> FROM sss.test
> group by ELEMENT
>
> I am geting the correct MAX VALUE but the TIME is always '00:00:00' .

See http://dev.mysql.com/doc/mysql/en/group-by-hidden-fields.html for an explanation and possible solutions.

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
May 19, 2005 03:01AM
Re: MAX and GROUP problem. Help!
May 19, 2005 03:35AM


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.