Created
April 1, 2023 06:50
-
-
Save camrobert/955b8c4a9c4911e423ae0a5dc1416105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT | |
a.SubscriberKey | |
, a.EmailAddress | |
, j.JobID | |
, j.EmailName | |
, s.EventDate | |
, j.SendClassificationType | |
, j.SendType | |
, a.DateUnsubscribed | |
FROM _Subscribers a | |
INNER JOIN _Sent s ON a.SubscriberKey = s.SubscriberKey | |
INNER JOIN _Job j ON j.JobID = s.JobID | |
WHERE a.Status = 'Unsubscribed' | |
AND a.DateUnsubscribed < s.EventDate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment