how to retrieve the top 3 salaries of the table using rownum
Answer Posted / kalyan kumar
select e.ename,e.sal from emp e where 3>(select count
(distinct(b.sal)) from emp b where b.sal>e.sal)
| Is This Answer Correct ? | 19 Yes | 10 No |
Post New Answer View All Answers
What are the two virtual tables available at the time of database trigger execution?
What is prepared statement in sql?
Mention what are different methods to trace the pl/sql code?
How many triggers can be applied to a table?
Why do you partition data?
What are types of exception?
Can we call procedure in select statement?
Enlist the characteristics of pl/sql?
What is %type in pl sql?
Can we join 3 tables in sql?
What is the clause we need to add in function body to return variable?
What does where 1/2 mean in sql?
can a stored procedure call itself or recursive stored procedure? : Sql dba
What is nosql vs sql?
how many triggers are allowed in mysql table? : Sql dba