adspace


How to find only %th Highest Sal

Answer Posted / ajit

select e.*, rn
from ( select empno, ename, sal, deptno, dense_rank() over ( order by sal desc ) rn
from emp) e
where rn = & rn;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are aggregate and scalar functions? : Sql dba

1142


how to start mysql server? : Sql dba

1279


Does group by remove duplicates?

1121


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


Is inner join faster than left join?

1287


what is dbms? : Sql dba

1070


What is your daily office routine?

2353


how to use regular expression in pattern match conditions? : Sql dba

1125


Can we rollback truncate?

1083


What is the best sql course?

1064


what is collation? : Sql dba

1242


Is primary key always clustered index?

1101


how many tables will create when we create table, what are they? : Sql dba

1156


Can we use distinct and group by together?

1147


what are all the common sql function? : Sql dba

1141