Created
March 28, 2016 19:04
-
-
Save mikechau/a4ca1d36cbff011fbc7b to your computer and use it in GitHub Desktop.
sql query for finding an association
This file contains hidden or 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 column FROM table1 WHERE EXISTS (SELECT column2 FROM table2 WHERE table1.column1 = table2.column2.id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment