remove space_id

This commit is contained in:
Dona Maria Absi
2025-05-01 15:02:35 +03:00
parent e365cb0b50
commit 796f5c6c08

View File

@ -5,9 +5,7 @@ WITH params AS (
string_to_array(NULLIF($4, ''), ',') AS device_ids
)
SELECT
B.space_device_uuid AS space_id,
TO_CHAR(A.date, 'MM-YYYY') AS month,
SELECT TO_CHAR(A.date, 'MM-YYYY') AS month,
SUM(A.energy_consumed_kW::numeric) AS total_energy_consumed_KW,
SUM(A.energy_consumed_A::numeric) AS total_energy_consumed_A,
SUM(A.energy_consumed_B::numeric) AS total_energy_consumed_B,