how to retrieve the top 3 salaries of the table using rownum
Answer Posted / swapnareddy
select sal from emp a where 3>(select
count(distinct(sal))from emp b where a.sal<b.sal);
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Does sql backup shrink transaction log?
How to place comments in pl/sql?
What are sql procedures?
How to test for null values?
What is compute?
What does the hierarchical profiler does?
Which is better cte or subquery?
how to include character strings in sql statements? : Sql dba
What is the difference between unique and primary key constraints?
What is snowflake sql?
Explain what is dbms?
Can you sum a count in sql?
What is difference between sql and excel?
How will you distinguish a global variable with a local variable in pl/sql?
Why does sql need a server?