how to retrieve the top 3 salaries of the table using rownum
Answer Posted / debanjan rudra
select sal from (select sal from emp order by val desc)
where rownum < 4;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is pl sql a scripting language?
What does the base_object_type column shows in the user.triggers data dictionary view?
What is the most restrictive isolation level? : Transact sql
What is data control language?
how do you know if your mysql server is alive? : Sql dba
What are local and global variables and their differences?
What is the use of index in hive?
Explain the uses of control file.
What is rank dense_rank and partition in sql?
What is %type in sql?
how to run 'mysql' commands from a batch file? : Sql dba
What does truncate mean in sql?
What is restrict in sql?
how to decrement dates by 1 in mysql? : Sql dba
Can we join same table in sql?