Created
October 12, 2018 12:57
-
-
Save tom-lord/135cbbff84ab20e6cf5f9f47dd684b7a 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 "lease_deals"."id" | |
FROM "lease_deals" | |
WHERE "lease_deals"."expired_at" IS NULL | |
AND "lease_deals"."dealership_id" = 1234 | |
AND ( updated_at < '2018-10-09 09:34:11.818701' ) | |
ORDER BY "lease_deals"."id" ASC | |
LIMIT 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment