mirror of
https://github.com/SyncrowIOT/data.git
synced 2025-07-09 22:57:19 +00:00
new device log clean for user facing platform
This commit is contained in:
12
device_logs_clean/device_logs_clean.sql
Normal file
12
device_logs_clean/device_logs_clean.sql
Normal file
@ -0,0 +1,12 @@
|
||||
select device_id ,
|
||||
product."name" as "device_type",
|
||||
event_time::date as date ,
|
||||
event_time::time as time,
|
||||
code ,
|
||||
value
|
||||
from "device-status-log" dsl
|
||||
join product
|
||||
on dsl.product_id = product.prod_id
|
||||
join device d
|
||||
on d."uuid" = dsl.device_id
|
||||
order by 1,3,4
|
Reference in New Issue
Block a user