select * from
(select row_number() over(partition by class order by sroce desc) from table) a
where a<4;
查询表a中按照calss来分区之后各分区按照sroce来降序,然后取得各个分区的前三
select * from
(select row_number() over(partition by class order by sroce desc) from table) a
where a<4;
查询表a中按照calss来分区之后各分区按照sroce来降序,然后取得各个分区的前三