Created
November 14, 2013 00:18
-
-
Save workmaster2n/7459021 to your computer and use it in GitHub Desktop.
count distinct date
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 DISTINCT ON (date_trunc('day', recorded_at)) COUNT(*) | |
| FROM tracked_points WHERE worker_id = 1 AND recorded_at > '2013-11-14' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment