按固定周期自动向管理员发送报告CSV文件

我找到了要在 Data Explorer 中运行的查询,它是:

SELECT term, count(*) searches, 
 sum(case when search_result_id is not null then 1 else 0 end) clicks,
 round(sum(case when search_result_id is not null then 1 else 0 end) * 100.0 / count(*), 1) as ctr
from search_logs
where created_at > current_timestamp - interval '30' day
group by term
order by count(*) desc

所以,我最后的、最后的疑问是:在 Automation 中是否有办法运行此查询,并将结果转换为 CSV 附件发送给收件人,而不是将结果发布在电子邮件正文中?

2 个赞