-
-
Save ldenson11/57be6ecb715a0d8835e03a85a9c3d16b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- average pressure over 5 second window | |
SELECT TUMBLE_END(ts, interval '5' second) AS ts, | |
rigId, | |
sensorName, | |
AVG(sensorValue) AS pressure | |
FROM rigData | |
WHERE sensorType = 'Pressure' | |
GROUP BY rigId, sensorName, TUMBLE(ts, interval '5' second) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment