How to get employee name from employee table which is the
fiveth highest salary of the table
Answer Posted / ashwin
Hi, you can use following query.
select ename,sal from(select ename,sal from emp order by sal
desc)where rownum=5;
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
how to fetch common records from two tables? : Sql dba
how to escape special characters in sql statements? : Sql dba
What is full join in sql?
What is procedure explain with program?
What are the different types of joins in sql?
What is the use of sqlerrd 3?
How do you drop a trigger?
What is rename command in sql?
Mention what does the hierarchical profiler does?
What are all types of user defined functions?
What is a scalar value in sql?
What is bind reference and how can it be created?
Can we use pl sql in sql server?
What are all the different types of indexes?
What are all different types of collation sensitivity?