how to retrieve the top 3 salaries of the table using rownum
Answer Posted / nitesh
select sal from emp e where 3>=(select count(distinct sal)
from emp where sal>e.sal) order by sal desc;
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
How to run sql*plus commands in sql developer?
What is an alias command?
what is an index? : Sql dba
What are aggregate functions in sql?
Explain alias in sql?
how to check myisam tables for errors? : Sql dba
Enlist the advantages of sql.
How do I run a program in pl sql?
Is sql better than excel?
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
Are subqueries faster than joins?
describe mysql connection using mysql binary. : Sql dba
What is pl/sql table? Why it is used?
What is a delimiter in sas?
How to read/write files from pl/sql?