I have data logged that I need to average per hour between a date range and I am clueless where to start. I am using Microsoft SQL Server 2000 to access old data...
table name = ftb_analogs
fields:
DateandTime as datetime
tag as smallint
val as float
I am trying to grab data between July 1, 2009 and October 1, 2009 and average the information in the val field per hour and then the average per day. the tag field would be always equal to 3.
So the output would be
AVG Per hour
date and time average per hour
july 1, 2009 01:00 | 35.29
AVG Per Day
date and time average per day
july 1, 2009 | 35.29
Thanks!
table name = ftb_analogs
fields:
DateandTime as datetime
tag as smallint
val as float
I am trying to grab data between July 1, 2009 and October 1, 2009 and average the information in the val field per hour and then the average per day. the tag field would be always equal to 3.
So the output would be
AVG Per hour
date and time average per hour
july 1, 2009 01:00 | 35.29
AVG Per Day
date and time average per day
july 1, 2009 | 35.29
Thanks!