I have a problem using mySQL with my PHP admin and have a problem querying my DB This is the query statement:
SELECT Record_ID, Datalog_ID, TIME, AVG( Value )
FROM `Datalog_Values`
WHERE Datalog_ID = '241'
AND TIME
BETWEEN '2012-06-01'
AND '2012-06-30'
GROUP BY HOUR( TIME )
The result i am getting is only the results from the first day and not the period.i.e. the month.
what is wrong with my statement????