Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marketingclouded/afbe363ce97e5ae5279de0528e196a18 to your computer and use it in GitHub Desktop.
Save marketingclouded/afbe363ce97e5ae5279de0528e196a18 to your computer and use it in GitHub Desktop.
Tracking SFMC Subscriber Behavior: First SQL Query to Update Performance_Subscriber Data Extension with _Subscriber info and Sent Count
SELECT
e.SubscriberId,
e.Status,
e.DateJoined,
e.DateUnsubscribed,
e.EmailAddress,
e.BounceCount AS Bounces,
COUNT(d.SubscriberID) AS 'Sent'
FROM _Subscribers e
LEFT JOIN _Sent d
ON e.SubscriberID = d.SubscriberID
GROUP BY e.SubscriberID, e.Status, e.DateJoined, e.DateUnsubscribed, e.EmailAddress, e.BounceCount
HAVING COUNT(d.SubscriberID) > 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment