求中位数有三种方法,第一种是中位数序号 距离 (数据量+1)/2 小于1,用公式表达abs(rn - (num +1)/2) < 1,注意不是<=1而是<1; # 写法一:中位数序号 与 (个数+1)/2 的距离 小于1 ,公式为abs(rn - (num+1)/2) < 1 with t as ( select * ,row_number() over(partition by job order by score desc) as t_rank ,count(*) over(partition by jo...