Skip to content

Instantly share code, notes, and snippets.

@JorgeMichelena
Created September 19, 2022 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JorgeMichelena/a7e53263cfb4e87c19406b106af54a46 to your computer and use it in GitHub Desktop.
Save JorgeMichelena/a7e53263cfb4e87c19406b106af54a46 to your computer and use it in GitHub Desktop.
(SELECT "targets_user"."id", "targets_user"."password", "targets_user"."last_login",
        ...
        "targets_user"."date_of_birth", "targets_user"."zodiac_sign"
FROM "targets_user" WHERE "targets_user"."zodiac_sign" = \'scorpio\')
UNION
(SELECT "targets_user"."id", "targets_user"."password", "targets_user"."last_login",
        ...
        "targets_user"."date_of_birth", "targets_user"."zodiac_sign"
FROM "targets_user" WHERE "targets_user"."date_of_birth" <= \'2001-07-28\'::date) LIMIT 21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment