Created
April 3, 2017 11:19
-
-
Save Macagare/124031b95bd4d836135455862499f3d4 to your computer and use it in GitHub Desktop.
compare two table for missing ids
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
SELECT table1.ID | |
FROM table1 | |
LEFT OUTER JOIN table2 ON table1.ID = table2.ID | |
WHERE table2.ID IS NULL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment