Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marketingclouded/95fed983b1abbec42adceba0947cae94 to your computer and use it in GitHub Desktop.
Save marketingclouded/95fed983b1abbec42adceba0947cae94 to your computer and use it in GitHub Desktop.
Tracking Inactive Subscribers in SFMC: Updates Subscriber_Last_Open w _Open and _Job Info
SELECT
g.SubscriberID,
MAX(a.EventDate) AS 'LastOpenDate',
MAX(a.JobID) AS 'JobID',
y.EmailName
FROM Subscriber_Last_Open g
JOIN _Open a
ON g.SubscriberID = a.SubscriberID
JOIN _Job y
ON a.JobID = y.JobID
GROUP BY g.SubscriberID, y.EmailName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment