All pastes #915778 Raw Edit

Anonymous

public text v1 · immutable
#915778 ·published 2008-02-24 01:16 UTC
rendered paste body
SELECT recipients.id, email, taggings.tag_id FROM `recipients` LEFT OUTER JOIN `taggings` ON taggings.recipient_id = recipients.id WHERE recipients.account_id = 1 AND (taggings.tag_id IN (1) AND NOT taggings.tag_id IN (2));