sfmc // SQLPRODUCTION

Anti-Join / Exclusion Audience

Find records in a source population that do not have a qualifying event or membership.

sqlleft joinexclusionaudience
Context Pack →Open Workspace →
Trust & provenancePRODUCTION
Evidence tierPRODUCTIONOfficial sources0Other sources0Last verifiedNot recorded

Evidence tier describes my hands-on relationship with the content. Official sources describe platform contracts/documentation. Production observations should not automatically be treated as official limits.

SELECT
    s.SubscriberKey,
    s.EmailAddress
FROM [Eligible_Audience] s
LEFT JOIN [_Open] o
    ON o.SubscriberKey = s.SubscriberKey
    AND o.EventDate >= DATEADD(day, -30, GETDATE())
WHERE o.SubscriberKey IS NULL
Operational notes

Keep the date predicate in the JOIN when the business rule means “no matching recent event”.

Use indexed/compact join keys whenever possible.

Related