Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. SELECT count(*) AS TotalSent,
  2. DATENAME(month, p.EventDate) as [Month],
  3. p.SubscriberKey as SubscriberKey
  4. FROM _Sent p
  5. INNER JOIN [Clients_DE] B ON p.SubscriberKey = B.AccountID
  6. WHERE p.EventDate BETWEEN GETDATE()-30 AND GETDATE()
  7. GROUP BY p.EventDate, p.SubscriberKey
  8. HAVING COUNT(*) > 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement