Sql 如何在bigquery中合并两个查询

Sql 如何在bigquery中合并两个查询,sql,google-bigquery,Sql,Google Bigquery,我有两个问题 查询1:#活动中的内容块 Select c.campaign_id, sum(case when medium in ('photo', 'story', 'video', 'album') then 1 else 0 end) as totalcontent From `public_collaboration_contents` as cc Left join `public_collaborations` as c ON cc.collaboration_id = c.id

我有两个问题

查询1:#活动中的内容块

Select c.campaign_id, sum(case when medium in ('photo', 'story', 'video', 'album') then 1 else 0 end) as totalcontent
From `public_collaboration_contents` as cc 
Left join `public_collaborations` as c ON cc.collaboration_id = c.id
Left join `public_influencers` as i on c.influencer_id = i.id
Left join `public_collaboration_tasks` as ct on cc.id = ct.collaboration_content_id
Where cc.state = 'delivered'
And ct.state = 'delivered'
Group by c.campaign_id
表如下所示:

活动编号 总含量 1233
你能提供你已经尝试过的、给出错误计数的查询吗?@AnthonyForloney当然可以,只是把它添加到了“编辑1”下的问题中