Skip to content

Instantly share code, notes, and snippets.

@laughedelic
Created April 8, 2019 10:41
Show Gist options
  • Save laughedelic/eadd6b0dc7f3a95bfb1aa2fbdd482bcc to your computer and use it in GitHub Desktop.
Save laughedelic/eadd6b0dc7f3a95bfb1aa2fbdd482bcc to your computer and use it in GitHub Desktop.
See the difference between two tables on the given column
SELECT DISTINCT
a.column AS a_column,
b.column AS b_column
FROM
a FULL JOIN b
ON a.column = b.column
WHERE
a.column IS NULL OR
b.column IS NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment