Skip to content

Commit

Permalink
Fix update query #165
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Jan 31, 2023
1 parent c7518ac commit b687f44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions influxdb/sample.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DDL
# CQs only downsample new incoming data. This script will downsample existing raw data.
#
USE powerwall
# USE powerwall
CREATE DATABASE powerwall
# cq_vitals7
SELECT mean(ISLAND_VL1N_Main) AS ISLAND_VL1N_Main, mean(ISLAND_VL2N_Main) AS ISLAND_VL2N_Main, mean(ISLAND_VL3N_Main) AS ISLAND_VL3N_Main INTO powerwall.vitals.:MEASUREMENT FROM (SELECT ISLAND_VL1N_Main, ISLAND_VL2N_Main, ISLAND_VL3N_Main FROM raw.http) GROUP BY time(15s), month, year fill(linear)
SELECT mean(ISLAND_VL1N_Main) AS ISLAND_VL1N_Main, mean(ISLAND_VL2N_Main) AS ISLAND_VL2N_Main, mean(ISLAND_VL3N_Main) AS ISLAND_VL3N_Main INTO powerwall.vitals.:MEASUREMENT FROM (SELECT ISLAND_VL1N_Main, ISLAND_VL2N_Main, ISLAND_VL3N_Main FROM powerwall.raw.http) GROUP BY time(15s), month, year fill(linear)

0 comments on commit b687f44

Please sign in to comment.