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 are the differences between procedure-oriented languages and object-oriented languages? : Sql dba
Can procedure in package be overloaded?
How are sql commands classified?
How can you fetch first 5 characters of the string?
How do you delete a table?
What are the two types of exceptions in pl/sql?
List the various privileges that a user can grant to another user?
How to use distinct and count in sql query? Explain
Can we connect to postgresql using sql developer?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?
What company owns postgresql?
What are the limitations of sql express?
How many columns should be in an index?
What are primary key and foreign key and how they work?
what are properties of a transaction? : Sql dba