mirror of
https://github.com/SyncrowIOT/data.git
synced 2025-07-10 15:17:24 +00:00
remove comments
This commit is contained in:
@ -1,5 +1,4 @@
|
|||||||
WITH total_energy AS (
|
WITH total_energy AS (
|
||||||
-- Get the first and last event_time per device per day
|
|
||||||
SELECT
|
SELECT
|
||||||
device_id,
|
device_id,
|
||||||
event_time::date AS date,
|
event_time::date AS date,
|
||||||
@ -11,7 +10,6 @@ WITH total_energy AS (
|
|||||||
)
|
)
|
||||||
|
|
||||||
, energy_phase_A AS (
|
, energy_phase_A AS (
|
||||||
-- Get the first and last event_time per device per day
|
|
||||||
SELECT
|
SELECT
|
||||||
device_id,
|
device_id,
|
||||||
event_time::date AS date,
|
event_time::date AS date,
|
||||||
@ -23,7 +21,6 @@ WITH total_energy AS (
|
|||||||
)
|
)
|
||||||
|
|
||||||
, energy_phase_B AS (
|
, energy_phase_B AS (
|
||||||
-- Get the first and last event_time per device per day
|
|
||||||
SELECT
|
SELECT
|
||||||
device_id,
|
device_id,
|
||||||
event_time::date AS date,
|
event_time::date AS date,
|
||||||
@ -35,7 +32,6 @@ WITH total_energy AS (
|
|||||||
)
|
)
|
||||||
|
|
||||||
, energy_phase_C AS (
|
, energy_phase_C AS (
|
||||||
-- Get the first and last event_time per device per day
|
|
||||||
SELECT
|
SELECT
|
||||||
device_id,
|
device_id,
|
||||||
event_time::date AS date,
|
event_time::date AS date,
|
||||||
|
Reference in New Issue
Block a user