Last active
November 25, 2020 04:06
-
-
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
This file contains hidden or 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 | |
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