Write a query to find five highest salaries from EMP table.
(there is a column SALARY)
Answer Posted / kavitha nedigunta
select a.*
from(select empno,ename,sal
from emp
order by sal desc nulls last)a
where rownum <6
order by sal desc
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
Does sql*plus have a pl/sql engine?
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?
Who is the owner of mysql database?
How to move files from one directory to another in pl sql?
Can there be more than one function with a similar name in a pl/sql block?
What are all the different types of indexes?
What does the hierarchical profiler does?
What is constant in pl sql?
Explain how can you save or place your msg in a table?
What are the types of records?
How many triggers can be applied on a table?
What is asqueryable?
How do I run a sql query in pgadmin 4?
How to process query result in pl/sql?