I got a tbl that looks like the following:
Time: TemperatureIn: TemperatureOut: ... ... ... ... ... ...
12:15 67 65 ... ... ... ... ... ...
12:30 69 66 ... ... ... ... ... ...
12:45 71 69 ... ... ... ... ... ...
13:00 71 70 ... ... ... ... ... ...
13:15 70 69 ... ... ... ... ... ...
13:30 73 71 ... ... ... ... ... ...
13:45 72 67
14:00 74 70
14:15 72 69
.... ... ...
I want to design a query that calculates the average values for the temperatures for every hour. For example, the output would be :
Time: TemperatureIn TemperatureOut
13:00 69.5 67.0
14:00 ... ... ... ...
... ...
where 69.5 is (67+69+70+71)/4.
what would be the fastest solution? Keep in mind that I have a lot of fields of temperatures (30+).
Time: TemperatureIn: TemperatureOut: ... ... ... ... ... ...
12:15 67 65 ... ... ... ... ... ...
12:30 69 66 ... ... ... ... ... ...
12:45 71 69 ... ... ... ... ... ...
13:00 71 70 ... ... ... ... ... ...
13:15 70 69 ... ... ... ... ... ...
13:30 73 71 ... ... ... ... ... ...
13:45 72 67
14:00 74 70
14:15 72 69
.... ... ...
I want to design a query that calculates the average values for the temperatures for every hour. For example, the output would be :
Time: TemperatureIn TemperatureOut
13:00 69.5 67.0
14:00 ... ... ... ...
... ...
where 69.5 is (67+69+70+71)/4.
what would be the fastest solution? Keep in mind that I have a lot of fields of temperatures (30+).