SQL - LEFT and RIGHT JOIN
Consider the tables
Assuming
members(id) and subscriptions(member_id). What will this query return?SELECT m.id FROM members m LEFT JOIN subscriptions s ON m.id = s.member_id WHERE s.member_id IS NULL;
Assuming
members has 6 rows and subscriptions has 4 rows linked to 4 different members.