SQL: select the average value of a column per hour per day for the last 30 days – Postgresql
I have a table like below which contains temperature data for the last 6 months. It takes about 30-40 readings of temperature in an hour. 'time' is in epoch milliseconds. time temperature 1678270897857 25 1678270777712 30 1678270657548 38 1678270537402 27…