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 difference between delete and truncate commands? : Sql dba
How is sql used in oracle?
How many sql databases can you have on one server?
How can we implement rollback or commit statement in a trigger?
Can sql developer connect to db2?
How delete a row in sql?
Do triggers have restrictions on the usage of large datatypes, such as long and long raw?
How do I clear the screen in sql plus?
what is 'mysqlimport'? : Sql dba
what are all the different types of indexes? : Sql dba
What is the difference between clustered and non-clustered indexes?
i have some prob lem to tell me about my self in interview first round ...
Can you do multiple joins in sql?
How do I save a sql query?
What are the different tcl commands in sql?