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
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
How do you create a unique index?
What is sqlerrm?
what are the different type of sql's statements ? : Sql dba
What is the difference between function and procedure in pl/sql?
How subquery works in sql?
Why self join is used in sql?
What is group by in sql?
What is rank dense_rank and partition in sql?
What are the two types of exceptions in pl/sql?
What is basic structure of pl sql?
How delete all data from table in sql?
Does mysql_real_escape_string prevent sql injection?
What are the different parts of a package?
What are the dml statements?