Created
September 16, 2022 16:59
-
-
Save andreypopp/605a9f5fe67ce6593345baa24bad747d 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
CREATE QUERY all_usernames AS | |
SELECT ?fields... FROM ( | |
SELECT | |
user.is_active AS is_really_active, | |
... | |
FROM user | |
WHERE ?where:Bool | |
) AS user | |
LEFT JOIN ( | |
SELECT ... FROM user | |
) AS user2 | |
WHERE user.is_really_active |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment