-
-
Save ldenson11/f301a896845ba7b62e91249357d3f68f 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
-- find load data > 400psi | |
SELECT rigId, sensorName, MAX(sensorValue) as MaxLoad | |
FROM rigData | |
WHERE sensorType = 'Load' | |
AND sensorValue > 400 | |
AND ts > CURRENT_TIMESTMAP - interval '5' minutes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment