select t2.date, t2.user_id, t2.sum_pass_count as pass_count from (select t1.date, t1.user_id, t1.sum_pass_count, dense_rank() over (partition by t1.date order by t1.sum_pass_count desc) rn-- 不跳数字排名 from (select date, user_id, sum(pass_count) as sum_pass_count from questions_...