先准备好两个表一个是上一题的 两个中位数的位置在哪里一个是带排名的表两个表用where连接一下就好了 select g.id, g.job, g.score, g.t_rank from (select id, job, score, row_number() over(partition by job order by score desc) as t_rank from grade) g, (select job, (case when count(1)%2=1 then rou...