Skip to content

Instantly share code, notes, and snippets.

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 ByoungInKim/2bcd220b2accd53f6ed11741e8876d6a to your computer and use it in GitHub Desktop.
Save ByoungInKim/2bcd220b2accd53f6ed11741e8876d6a to your computer and use it in GitHub Desktop.
SELECT A.columnA
FROM TableA AS A
LEFT JOIN TableB AS B ON (A.columnA = B.columnA)
WHERE B.columnA IS NULL
@ByoungInKim
Copy link
Author

ByoungInKim commented May 12, 2017

Table A = [ A, B, C, D ]
Table B = [ A, B, D ]

This query get difference set.
result is [ C ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment