查找过去 1 个月每个 JOB ID 的“总发送”以及它在 Marketing Cloud 中发送到的“列表名称”

Find the ‘total sent’ for each JOB IDs in last 1 month along with ‘list name’ it was sent to in Marketing cloud

目前通过使用此查询,我得到了特定 JOB id 的 total_sends 的数量。但我想修改查询,使其显示 total_sends 、 ListName 、指定时间范围内每个作业 ID 的日期。

Select 
count(s.EmailAddress) 
from [_Job] j 
join [_Sent] se 
on j.JobID = se.JobID 
join [_Subscribers] s 
on se.SubscriberID = s.SubscriberID 
where 
se.IsUnique = 1 and 
se.EventDate > dateadd(d,-20,getdate()) and 
j.JobID =11111 

这是我的最终 Table 应该是什么样子的例子, enter image description here 这是我正在查询的数据 View/Table 的 link - https://sfmarketingcloudhome.files.wordpress.com/2021/02/dataviews_2021_v2.png

我还没有测试过,但是这样的东西对你有用吗?如果您使用的是 Automation Studio,请确保修改/添加数据扩展中的列。

Select 
count(s.EmailAddress) as total_sends,
j.SchedTime,
ls.Listname
from [_Job] j 
join [_Sent] se 
on j.JobID = se.JobID 
join [_Subscribers] s 
on se.SubscriberID = s.SubscriberID 
join _ListSubscribers ls ON se.SubscriberID = ls.SubscriberID
where 
se.IsUnique = 1 and 
se.EventDate > dateadd(d,-20,getdate()) and 
j.JobID =11111