select ename,sal
from(
select (select count(distinct b.sal)
from emp b
where a.sal<=b.sal) as rnk,
a.sal,
a.ename
from emp a
)x where rnk<=5;

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-11-18
  • 2022-02-25
  • 2021-11-16
猜你喜欢
  • 2021-06-26
  • 2022-02-24
  • 2021-06-16
  • 2022-12-23
  • 2021-12-16
  • 2021-10-07
  • 2022-12-23
相关资源
相似解决方案