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 Histogram?
How to avoid duplicate records in a query?
Define select, insert, create, delete, update, drop keywords
What kind of join is join?
Which is faster truncate or drop?
What are the string functions in sql?
What does sign mean sql?
What are some emotional triggers?
Explain the update statement in sql
what is an extent ? : Sql dba
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
What is interval partition?
What is the advantage of index in sql?
what are the limitations of identity column? : Transact sql
Is stored procedure faster than query?