Created
February 21, 2013 16:48
-
-
Save Shadow6363/5006123 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
SELECT | |
*, | |
@rowNum := @rowNum + 1 as row_number | |
FROM `datalog` | |
JOIN ( SELECT @rowNum := 0 ) | |
WHERE | |
MOD(row_number, 4) = 0 AND | |
sensorid = '$sensor' AND | |
time >= '$timeOffset' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment