1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
To answer my own question:
One way to do this is with a following type of query:
-- Get data points for both CO2 and humidity
SELECT
time,
MAX(if(measure_name = 'CO2', measure_value::double)) AS CO2_ppm,
MAX(if(measure_name = 'humidity', measure_value::double)) AS humidity_percent
FROM "MyTimestreamDB"."myTable"
WHERE
time >= ago(10m)
AND measure_name IN ('CO2', 'humidity')
AND deviceId='6a087171-400c-4851-a82b-ceab383b421c'
GROUP BY time
ORDER BY time DESC
回答済み 3年前
関連するコンテンツ
- AWS公式更新しました 1年前