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
What is the most important ddl statements in sql are?
Why query optimization is needed?
What are analytical functions in sql?
Why stored procedures are faster than query?
What are the advantages of pl sql over sql?
what is the difference between nested subquery and correlated subquery?
what is offset-fetch filter in tsql? : Transact sql
How would you pass hints to the sql processor?
what is a table in a database ? : Sql dba
what is the difference between $message and $$message? : Sql dba
what is the difference between delete and truncate statement in sql? : Sql dba
What is right join in sql?
Can we delete column in sql?
what are all the different normalizations? : Sql dba
Can you inner join the same table?