Created
March 31, 2015 07:00
-
-
Save martijngastkemper/a07a3c8d539ef2873809 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 u.url, min(time), avg(time), max(time), count(*), VAR_POP(time) , STD(time) | |
| FROM data d LEFT JOIN url u ON u.id = d.url | |
| WHERE `timestamp` > TIMESTAMP(NOW() - INTERVAL 1 DAY) | |
| GROUP BY d.url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment