a query to select maxmun 3 salaries of employee table

Answer Posted / tulasi

select * from (select * from emp order by sal desc) where
rownum<=3;

Is This Answer Correct ?    21 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of trigger and explain its various uses and functions?

551


How to define a variable to match a table column data type?

580


How can we force the database to use the user specified rollback segment?

562


What is the difference between PFILE and SPFILE in Oracle?

580


Why do we use coalesce function in oracle?

631






Is it possible to set second Primary Key Constraint in a table in Oracle Database ?

646


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

628


What are group functions in oracle?

585


How do we get field details of a table?

549


What are the set operators union, union all, minus & intersect meant to do?

564


What is a read only transaction in oracle?

596


How to write text literals in oracle?

614


How to convert a string to a date in oracle database?

542


What are the different types of synonyms?

597


How can we find out the duplicate values in an oracle table?

609