How to get employee name from employee table which is the
fiveth highest salary of the table
Answer Posted / kavitha nedigunta
select a.ename,a.sal
from(select ename,sal,
dense_rank() over( order by sal desc nulls last) rk
from emp)a
where rk =5;
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is an invalid partition table?
What are the differences between implicit and explicit cursors?
What is the use of index in hive?
What is procedure and function in sql?
What is fmtonly in sql?
how to include comments in sql statements? : Sql dba
What do you mean by stored procedures? How do we use it?
What is function and procedure in pl sql?
What is the difference between explicit and implicit cursors in oracle?
what is the difference between delete and truncate commands? : Sql dba
Explain the difference between drop and truncate commands in sql?
Explain isolation levels. : Transact sql
How does sql store data?
What is embedded sql in db2?
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba