Re: Max Query Issue
JOHN FARRUGIA wrote:
> Select id,reference,max(value)
> from data_readings.lts4a_accel_torquer
> where reference='total_parts' and readtime between '2005-5-20 6:30:0' and '2005-5-20 12:41:46'
> group by reference;
1) Use the correct datetime format: yyyy-mm-dd hh:mm:ss
2) Read about GROUP BY with hidden fields here:
http://dev.mysql.com/doc/mysql/en/group-by-hidden-fields.html
--
felix
Please use
BBCode to format your messages in this forum.
Subject
Written By
Posted
Re: Max Query Issue
May 20, 2005 11:28AM
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.