Selecting the second row of a table using rownum

后端 未结 9 1494
栀梦
栀梦 2020-11-28 14:07

I have tried the below query:

select empno from (
                   select empno 
                     from emp
                    order by sal desc
               


        
9条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 14:50

    You can use RANK or DENSE_RANK to achieve what you are trying to achieve here.

提交回复
热议问题