Sådan:
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;
Du kan også gøre det sådan her:
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
);
Dette kaldes i øvrigt en "venstre-antisemi-tilslutning".