how to retrieve the top 3 salaries of the table using rownum
Answer Posted / ram
Select * from emp
where emp.salary in (select emp.salary from emp
where (select distict salary
from emp order by desc null last)
where rownum <=3);
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What do you mean by stored procedures?
what is a view? : Sql dba
What are all the common sql functions?
What is sap sql anywhere?
What are the different sql languages?
What is a sql instance vs database?
Explain dml and ddl?
Mention what pl/sql package consists of?
What is pl sql script?
Why is stored procedure faster than query?
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
What is count * in sql?
Is sql better than excel?
What are the different types of a subquery?
What are aggregate and scalar functions?