Commit 827bd145 authored by 魏艺敏's avatar 魏艺敏

Merge branch 'weiyimin' into 'master'

push codes

See merge request !85
parents c708740d 38e2a78f
......@@ -22,7 +22,7 @@ FROM
,round(avg(ai_report_card_click_uv),0) as ai_report_card_click_uv
,round(avg(ai_report_card_click_pv),0) as ai_report_card_click_pv
,round(avg(ai_report_good_click),0) as ai_report_good_click
FROM pm.tl_pm_content_v3
FROM pm.tl_pm_content_v2
where partition_day>='20201018' and partition_day <= regexp_replace(DATE_SUB(current_date,1) ,'-','')
group by substr(day_id,1,6),device_os_type,active_type,channel
)t1
......
......@@ -11,6 +11,6 @@ SELECT
,NVL(CONCAT(ROUND(ai_report_card_click_uv/ai_report_uv*100,2),'%'),0) AS `ai结果页内容卡片点击uv/ai结果页uv`
,NVL(CONCAT(ROUND(ai_report_card_click_pv/ai_report_uv*100,2),'%'),0) AS `ai结果页内容卡片点击pv/ai结果页uv`
,NVL(CONCAT(ROUND(ai_report_good_click/ai_report_uv*100,2),'%'),0) AS `来源于ai结果页的good click/ai结果页uv`
FROM pm.tl_pm_content_v3
FROM pm.tl_pm_content_v2
where partition_day>='20201018' and partition_day <= regexp_replace(DATE_SUB(current_date,1) ,'-','')
order by `日期`,`系统`,`活跃`,`渠道`
\ No newline at end of file
......@@ -28,7 +28,7 @@ FROM
,round(avg(home_card_click_pv),0) as home_card_click_pv
,round(avg(home_good_click),0) as home_good_click
,round(avg(page_stay_per_device),2) as page_stay_per_device
FROM pm.tl_pm_content_v3
FROM pm.tl_pm_content_v2
where partition_day>='20201018' and partition_day <= regexp_replace(DATE_SUB(current_date,1) ,'-','')
group by substr(day_id,1,6),device_os_type,active_type,channel
)t1
......
......@@ -14,6 +14,6 @@ SELECT
,NVL(CONCAT(ROUND(home_card_click_pv/dau*100,2),'%'),0) AS `首页卡片点击pv/DAU`
,NVL(CONCAT(ROUND(home_good_click/dau*100,2),'%'),0) AS `来源于首页的good click/DAU`
,NVL(page_stay_per_device,0) AS `单设备内容浏览时长(m)`
FROM pm.tl_pm_content_v3
FROM pm.tl_pm_content_v2
where partition_day>='20201018' and partition_day <= regexp_replace(DATE_SUB(current_date,1) ,'-','')
order by `日期`,`系统`,`活跃`,`渠道`
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment