select 
学号,班级,成绩,
round(
percent_rank()over(partition by 班级 order by 成绩 desc),2) as 百分位排名
from 成绩表