Created
August 13, 2016 18:31
-
-
Save amitaibu/7b460474ba5f6a04fb8e0921d4b0234d 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 * | |
FROM company | |
LEFT OUTER JOIN group_membership | |
ON (company.id = group_membership.company_id AND group_membership.user_id=1) | |
WHERE group_membership.company_id IS NULL | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment