Hello, I would like to know how to return only the hourly averages of a table as below:
id | valor | timestamp |
1 | 5.4 | 2017-4-20 18:00 |
2 | 3 | 2017-4-20 18:01 |
3 | 2.8 | 2017-4-20 18:40 |
4 | 2 | 2017-4-20 19:00 |
5 | 10 | 2017-4-20 19:05 |
6 | 7 | 2017-4-20 19:20 |
7 | 1 | 2017-4-20 19:55 |
8 | 5 | 2017-4-20 20:00 |
9 | 7 | 2017-4-20 20:11 |
10 | 4 | 2017-4-20 20:50 |
11 | 6 | 2017-4-20 21:00 |
------------------------------
.. would I have some select to return the averages per hour, from the "value" column? I'm trying but unsuccessful ...