select
class,id,
name
,score,rn
from
(
,score,
row_number() over(partition
by
class
order
score
desc
)
'rn'
学生总表) t
where
t.rn<=5