0

I have created_at column in my table. Let's say data as follows-

enter image description here

I want to get the average of temperature of each 6 hour segment. Let's say time starts from first hour of the day. Thus, my rows will be like as follows-

enter image description here

Note: I am able to get average of temperature of each hour using HOUR FROM of MySQL.

Any help is appreciated. Thanks!

0 Answers0