mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 13:54:53 +00:00
testing fix
This commit is contained in:
@ -5,7 +5,7 @@ WITH presence_logs AS (
|
|||||||
l.event_time,
|
l.event_time,
|
||||||
l.value,
|
l.value,
|
||||||
LAG(l.event_time) OVER (PARTITION BY l.device_id ORDER BY l.event_time) AS prev_time,
|
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
|
FROM device d
|
||||||
JOIN "device-status-log" l ON d.uuid = l.device_id
|
JOIN "device-status-log" l ON d.uuid = l.device_id
|
||||||
JOIN product p ON p.uuid = d.product_device_uuid
|
JOIN product p ON p.uuid = d.product_device_uuid
|
||||||
|
|||||||
Reference in New Issue
Block a user