|
@@ -108,8 +108,12 @@ report.industry,
|
|
report.second_industry,
|
|
report.second_industry,
|
|
report.union_event_pay_purchase_amount_7d,
|
|
report.union_event_pay_purchase_amount_7d,
|
|
report.union_event_pay_purchase_amount_7d_roi
|
|
report.union_event_pay_purchase_amount_7d_roi
|
|
-from (select * from media_api.kuaishou_agent_report_daily where stat_date={date_time}) report
|
|
|
|
-LEFT JOIN (
|
|
|
|
|
|
+from (select * from media_api.kuaishou_agent_report_daily where stat_date={date_time}
|
|
|
|
+and advertiser_id in(
|
|
|
|
+select advertiser_id from media_api.kuaishou_account_report_daily where stat_date={date_time}
|
|
|
|
+and charge>0
|
|
|
|
+) report
|
|
|
|
+inner JOIN (
|
|
SELECT
|
|
SELECT
|
|
cua.account_id id,
|
|
cua.account_id id,
|
|
cua.account_id account_id,
|
|
cua.account_id account_id,
|