最近遇到的一道面试题:
select class,id,name,score,rn
from
(select class,id,name,score,
       row_number() over(partition by class order by score desc'rn'
 from 学生总表) t where t.rn<=5
 
 
get 到了

相关文章:

  • 2022-02-19
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
猜你喜欢
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2021-10-11
  • 2022-02-02
  • 2022-12-23
相关资源
相似解决方案