Created
February 11, 2015 13:32
-
-
Save kungfuant/e85e07f602c2247ef05a to your computer and use it in GitHub Desktop.
Find missing games
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 vs.* FROM | |
GENERATE_SERIES(1e6::bigint, (SELECT max(id) FROM games)) vs | |
LEFT JOIN games ON vs = games.id | |
WHERE games.id IS null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment