by eric_the_read · 8y ago · 0 comments
SELECT field, other_field
FROM table
WHERE some_thing IN (
SELECT id
FROM other_table
)
AND other_field IS NOT NULL
(mostly it's right-aligning keywords, but there are a few other weird tweaks) SELECT
field,
other_field
FROM
TABLE
WHERE
some_thing IN (
SELECT
id
FROM
other_table)
AND other_field IS NOT NULL
I'd have expected the last line to have one less indentation level...* ORDER BY
* INNER JOIN
etc