Created
June 5, 2014 02:50
-
-
Save bradkovach/e10c29494ff700db1ac4 to your computer and use it in GitHub Desktop.
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 DISTINCT User.id | |
FROM users User | |
LEFT JOIN ads Ad ON User.id = Ad.user_id | |
WHERE Ad.approved =1 | |
AND Ad.active =1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment