Commit d3c31c2d by mengdongxing

Update tkdm_output_payment_explore_day.sql

parent f290385a
......@@ -28,7 +28,8 @@ from
else 3 end as rmb_level,
sum(if(amt_payment>0,1,0)) over(partition by deviceid) as is_potential
from tkdm.tkdm_base_active_payment_info
where ds='2017-02-25'
where ds='2017-02-25' and
last_payment_ds between between add_months('2017-02-25',-6) and '2017-02-25'
) x
where x.is_new_ins=1
group by x.appid
......
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