testing fix

This commit is contained in:
Dona Maria Absi
2025-05-30 10:51:26 +03:00
parent bfd92fdd87
commit 684205053d

View File

@ -5,7 +5,7 @@ WITH presence_logs AS (
l.event_time,
l.value,
LAG(l.event_time) OVER (PARTITION BY l.device_id ORDER BY l.event_time) AS prev_time,
LAG(l.value) OVER (PARTITION BY l.device_id ORDER BY l.event_time) AS prev_value
LAG(l.value) OVER (PARTITION BY l.device_id ORDER BY l.event_time) AS prev_value
FROM device d
JOIN "device-status-log" l ON d.uuid = l.device_id
JOIN product p ON p.uuid = d.product_device_uuid