Created
December 18, 2014 00:58
-
-
Save teich/6b038ac63c272f771644 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
SELECT | |
DATE_TRUNC('week', timestamp))::date as week, | |
COUNT(*) | |
FROM whatever | |
GROUP BY week | |
ORDER BY week asc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment