Given the following schema:
person:
id: ~
group:
id: ~
group_membership:
person_id: ~
group_id: ~
I am attempting to find members not w
I think this may be a substitute for the sub-query
SELECT *
FROM person
LEFT OUTER JOIN group_membership
ON person.id = group_membership.person_id
AND group_id = 1
WHERE group_membership.person_id is null
;
Rows returned where the person_id
is null indicate where rows exist in person
but not in group_membership