codice:select avg(temperatura) as media, max(temperatura) as maggiore from meteo where date_format(campo_datetime,"%Y-%m") = date_format(date_sub(now(),interval 1 month),"%Y-%m")
codice:select avg(temperatura) as media, max(temperatura) as maggiore from meteo where date_format(campo_datetime,"%Y-%m") = date_format(date_sub(now(),interval 1 month),"%Y-%m")