This commit is contained in:
Wolfgang Hottgenroth 2023-02-12 11:22:19 +01:00
parent bc134b448e
commit af0afb44f6
Signed by: wn
GPG Key ID: 836E9E1192A6B132

View File

@ -58,4 +58,16 @@ with
day_avg
group by t;
-- 12-Uhr-Werte
select
date_trunc('day', time)::date as day,
avg(temperature)::numeric(10,0) as temperature
from room_climate_measurement_t
where
category = 'Outdoor' and
location = 'Outdoor' and
extract('hour' from time) = 12 and
extract('year' from time) = 2023
group by day
order by day;