I'm trying to get the maximum temperature in a 200 record count along with the temperature. I'm successful in getting the max(temperature) but the date is incorrect. There must be some "and-ing' in there where 'temperature=temperature' and 'DateAndTime = DateAndTime'
Blockquote
SELECT DateAndTime, max(Temperature) as MaxTemp, Humidity, BarrPress
FROM (
select DateAndTime, Temperature, Humidity,BarrPress
from `temp-at-interrupt`
order by DateAndTime DESC LIMIT 200
) as T
Blockquote