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 do I tune a sql query?
What are the types of optimization?
How can we optimize a sql query?
what are all types of user defined functions? : Sql dba
The in operator may be used if you know the exact value you want to return for at least one of the columns.
How show all rows in sql?
Mention what does the hierarchical profiler does?
What is an emotional trigger?
What are packages in pl sql and also explain its advantages?
What are the benefits of stored procedures?
What is the use of partition by in sql?
Is record in pl sql?
Explain correlated query work?
Explain about various levels of constraint.
what is the difference between cluster and non cluster index? : Sql dba