with t1 as ( select uid,date(in_time)dt,min(date(in_time))over(partition by uid)new_dt from tb_user_log union select uid,date(out_time)dt,min(date(in_time))over(partition by uid)new_dt from tb_user_log ) select t1.dt,count(distinct t1.uid)dau, round(sum(if(dt=new_dt,1,0))/count(distinct t1.ui...