with tmp1 as ( select time ,max(rn) as rn1 from( select user_id ,substr(order_time,1,10) as time ,dense_rank() over(partition by substr(order_time,1,10) order by user_id) as rn from order_tb) t group by time), tmp2 as ( select time ,max(rn) as rn2 from( select user_id ,substr(leave_time,1,10) a...