The HrsSunShine column is an incrementing value every 5/10 minutes, so I will have to take the max value in each hour and subtract the min value from it. So far so good.
Then I want to sum the sunshine per hour grouping by hour each day, across all the data in the table, ideally I also want to normalise the whole lot into a percentage.
The final output I'm looking for would look like this..
Code: Select all
Hour SunHrs
---- ------
0 0
1 0
...
6 1278
7 23890
...
13 38763846
...
17 23764
18 1234
...
23 0