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 is a function in oracle pl sql?
How do I send sql query results to excel?
What are system versioned tables?
What is user defined functions?
What does where 1/2 mean in sql?
what is self-join? : Sql dba
What are joins in sql?
What is pls integer?
Explain the purpose of %type and %rowtype data types?
How do I count duplicates in sql?
What does data normalization mean?
Write a query to find the names of users that begin with "um" in sql?
State some properties of relational databases?
Enlist the data types that can be used in pl/sql?
Can we use pl sql in sql server?