with a as( select uid, (select max(date(out_time)) from tb_user_log) now, min(date(in_time)) intime, max(date(out_time)) newtime FROM&n...