WITH schedule_user AS ( SELECT uid, artical_id, in_time as tt, 1 AS UV FROM tb_user_log UNION ALL SELECT uid, artical_id, out_time as tt, -1 AS UV FROM tb_user_log ), t2 as ( select artical_id, tt,sum(UV) over (partition by artical_id order by tt,UV desc) as max_uv from s...