HI,
I am having a weather data in which the temperature and othe parameters were recorded ar every 15 minutes interval but i want the average temp at every one hr(60 minutes) interval that ejmans the average temperature of frist 60 minutes then the average of the next 60 minutes.......
My data is ln this form
Time temperature humidity
0 20 6
15 22 2
30 15 4
45 26 10
60 30 11
75 15 8
i would be thanKful to anyone who can help me in writing a query in access.
I GOT TEH REPLY SAYING I CAN USE THIS QUERY BUT WITH THIS QUERY I AM ONLY ABLE TO GET THE DATA AT ECERY 60 MINUTES BUT NOT THE AVERAGE, I WANT THE AVERAGE OF THE TEMP AND HUMIDITY AFTER EVERY 60 MINUTES.
SELECT Table1.Time, Table1.Temp, Table1.Humid
FROM Table1
WHERE (((Table1.Time)<>0) AND (([Table1]![Time] Mod 60)=0));
if you wish to get the average only of the above query:
SELECT Avg([mod].Temp) AS AvgOfTemp, Avg([mod].Humid) AS AvgOfHumid
FROM [SELECT Table1.Time, Table1.Temp, Table1.Humid
FROM Table1
WHERE Table1.Time<>0 And Table1!Time Mod 60=0
]. AS mod;
I am having a weather data in which the temperature and othe parameters were recorded ar every 15 minutes interval but i want the average temp at every one hr(60 minutes) interval that ejmans the average temperature of frist 60 minutes then the average of the next 60 minutes.......
My data is ln this form
Time temperature humidity
0 20 6
15 22 2
30 15 4
45 26 10
60 30 11
75 15 8
i would be thanKful to anyone who can help me in writing a query in access.
I GOT TEH REPLY SAYING I CAN USE THIS QUERY BUT WITH THIS QUERY I AM ONLY ABLE TO GET THE DATA AT ECERY 60 MINUTES BUT NOT THE AVERAGE, I WANT THE AVERAGE OF THE TEMP AND HUMIDITY AFTER EVERY 60 MINUTES.
SELECT Table1.Time, Table1.Temp, Table1.Humid
FROM Table1
WHERE (((Table1.Time)<>0) AND (([Table1]![Time] Mod 60)=0));
if you wish to get the average only of the above query:
SELECT Avg([mod].Temp) AS AvgOfTemp, Avg([mod].Humid) AS AvgOfHumid
FROM [SELECT Table1.Time, Table1.Temp, Table1.Humid
FROM Table1
WHERE Table1.Time<>0 And Table1!Time Mod 60=0
]. AS mod;
Last edited: