需求 #18277
商品点击UV提数
100%
描述
需求对接人:卢子华
历史记录
#3
由 李利婷 更新于 将近 5 年 之前
- 文件 19年下半年商品点击支付uv数据.xlsx 19年下半年商品点击支付uv数据.xlsx 已添加
- 计划完成日期 被设置为 2020-06-20
- 状态 从 已移交 变更为 已完成
- % 完成 从 0 变更为 100
- 实际上线时间 被设置为 2020-06-20
- 开发时间 被设置为 2020-06-20
需求已完成,请自行下载附件
select a.月份
,商品点击UV
,特价商品点击UV
,商品支付uv
,特价商品支付uv
from
(select DATETRUNC(a.special_date,'mm') 月份
,sum(a.goods_detail_uv) 商品点击UV
,sum(case when is_bargain=1 then a.goods_detail_uv end ) 特价商品点击UV
from
yishou_data.dws_log_sp_goods_exposure_click_dt a
join yishou_data.dim_goods_id_info b on a.goods_id=b.goods_id
where a.dt>=20190701
and a.dt<20200101
and a.is_today_up=1
group by DATETRUNC(a.special_date,'mm')
) a
left outer join
(select DATETRUNC(a.special_date,'mm') 月份
,sum(商品支付uv) 商品支付uv
,sum(case when is_bargain=1 then 商品支付uv end ) 特价商品支付uv
from
(select special_date
,goods_id
,count(distinct user_id) 商品支付uv
from yishou_data.dws_operation_sp_user_goods_sale_dt a
where a.dt>=20190701
and a.dt<20200101
group by special_date
,goods_id
)a
join yishou_data.dim_goods_id_info b on a.goods_id=b.goods_id
group by DATETRUNC(a.special_date,'mm')
)b
on a.月份=b.月份
;