Seperti ini:
SELECT a.name, a.team
FROM bowlers a
LEFT OUTER JOIN bowlers b ON a.name = b.name AND b.team = 'pin pals'
WHERE a.team = 'The homer team'
AND b.name IS NULL;
Anda juga dapat melakukannya seperti ini:
SELECT a.name, a.team
FROM bowlers a
WHERE a.team = 'The homer team'
AND NOT EXISTS (SELECT * FROM bowlers b
WHERE b.team = 'pin pals'
AND a.name = b.name
);
Omong-omong, ini disebut "Gabung Kiri Anti-Semi".