Created
August 21, 2013 14:35
-
-
Save workmaster2n/6295296 to your computer and use it in GitHub Desktop.
Improve Performance
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(tracked_points.worker_id) tracked_points.* FROM "tracked_points" WHERE "tracked_points"."location_id" = 15 ORDER BY tracked_points.worker_id, tracked_points.recorded_at DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment