Impossibile eseguire SELECT month(obs_date) as 'mese', case when dayofmonth(obs_date)<11 then 1 when dayofmonth(obs_date)<21 then 2 else 3 end as 'decade', avg(T850) as media, count(*) as num FROM `RZ_DATA` where station_id='16044' and year(obs_date)>= and year(obs_date)<=2023 and T850>-274 group by mese, decade order by mese, decade