-- 判断新老户 with is_new as( select uid ,date(min(in_time)) as dt from tb_user_log group by uid ) , record as( select uid,date(in_time) as dt from tb_user_log UNION select uid,date(out_time) as dt from tb_user_log ) select a.dt ,count(a.uid) as dau ,round(coun...