I know this is a left join of some kind, but I can't quite wrap my head around it.
Tables:
table Committees
CommitteeID
Title
table Members
MemberID
FirstName
LastName
table CommitteesMembers
CommitteeMemberID
CommitteeID
MemberID
I want to find all the Committees that the current member is NOT part of. So I need to go thru each CommitteeID and see if there's no entry in the third (CommitteesMembers) table containing the CommitteeID and the current MemberID.
I'm joining Committees and CommitteeMembers, right?
SELECT Committees.Title FROM Committees LEFT JOIN CommitteesMembers ON Committees.CommitteeID=CommitteesMembers.CommitteeID WHERE...
I know it's NOT "WHERE CommitteesMembers.MemberID IS NULL", because these committees DO have members, just not our current member. I need to work the current MemberID in there somehow.
Can someone give me a nudge in the right direction?