Last active
November 16, 2017 05:26
-
-
Save yancya/5af6bedee63059333e1447a783f936d0 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
WITH local_card_ids(id, "order") AS (VALUES(1, 0), (2, 1), (3, 2), (4, 3), (5, 4)) | |
SELECT cache.cards.* | |
FROM cache.cards | |
JOIN local_card_ids USING(id) | |
ORDER BY local_card_ids."order"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment