|
Question : transform data values captured by minute to hourly average
|
|
I need to transform a data dump from minute readings to hourly averages.
|
|
Answer : transform data values captured by minute to hourly average
|
|
Or, to return the hour as a datetime value:
SELECT [date], TimeSerial(Hour([time]), 0, 0) AS Hr, Avg([value]) AS HourlyAvg FROM YourTable GROUP BY [date], TimeSerial(Hour([time]), 0, 0) ORDER BY [date], TimeSerial(Hour([time]), 0, 0)
|
|
|
|