select dt1,round( count(distinct if(datediff(dt2,dt1)=1 ,uid,null))/count(distinct if(uv=1,uid,null)),2) from ( select uid,dt as dt1,dense_rank() over(partition by uid order by dt) as uv, lead(dt,1,dt) over(partition by uid order by dt) as dt2 from ( select uid, date(in_time) as dt from tb...