Commit a97ffa47 by mengdongxing

Update tkdm_data_app_summary_day.sql

parent 6313768a
......@@ -9,6 +9,8 @@ insert overwrite table tkdm.tkdm_data_app_summary_day partition(ds='$ds')
select /*+ mapjoin(b) */ a.appid,
a.cid,
a.num_click,
a.dupnum_click_day,
a.dupnum_click_all,
a.num_install,
round(a.num_install / a.dupnum_click_all,4) as ins_rate,
......@@ -24,6 +26,8 @@ select /*+ mapjoin(b) */ a.appid,
from
(select appid,
cid,
sum(num_click) as num_click,
sum(dupnum_click_day) as dupnum_click_day,
sum(dupnum_click_all) as dupnum_click_all,
sum(num_install) as num_install,
sum(dupnum_reged_day) as dupnum_reged_day,
......@@ -56,6 +60,8 @@ join
create EXTERNAL table tkdm_data_app_summary_day(
appid string,
cid int,
num_click int ,
dupnum_click_day int ,
dupnum_click_all int,
num_install int,
ins_rate double,
......
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