a query to select maxmun 3 salaries of employee table
Answer Posted / raju
select * from emp a where 3>=(select count(distinct(b.sal))
from emp b where b.sal>=a.sal )
Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What are temporal data types in oracle?
How to create a new table in oracle?
How to fetch the row which has the max value for a column?
What is Reduced List of Values?
What is set verify off in oracle?
Explain table?
Can multiple columns be used in group by in oracle?
What are dml statements in oracle?
How to get last row id?
How to rename an index?
Differentiate between post-database commit and post-form commit?
List the parts of a database trigger.
List out the difference between commit, rollback, and savepoint?
What is an Oracle Instance?
What are the differences between date and timestamp in oracle?