I have created_at
column in my table. Let's say data as follows-
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-
Note: I am able to get average of temperature of each hour using HOUR FROM
of MySQL.
Any help is appreciated. Thanks!