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
Can a view be mutating? If yes, then how?
What is keys and its types?
how to present a past time in hours, minutes and seconds? : Sql dba
Why do we need cursor in pl sql?
What is oracle sql developer?
Explain the purpose of %type and %rowtype data types?
How can you fetch common records from two tables?
what are the features and advantages of object-oriented programming? : Sql dba
What is difference between mysql and postgresql?
What are different types of statements supported by sql?
How do I run a pl sql program?
What is an index in sql with example?
what is query cache in mysql? : Sql dba
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
Inline the values in PL/SQL, what does it mean.?