Write a query to find five highest salaries from EMP table.
(there is a column SALARY)

Answer Posted / amit bharane

select salary from employees
where rownum<=5
order by salary desc

Is This Answer Correct ?    3 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is faster joins or subqueries?

717


Does truncate table reset auto increment?

722


Can pl sql procedure have a return statement?

724


Does sql profiler affect performance?

733


what is transaction? : Sql dba

719






What are sql queries used for?

762


How do I add a database to sql?

778


how to load data files into tables with 'mysqlimport'? : Sql dba

747


What is composite primary key in sql?

710


What are the differences between in and exists clause?

787


Can a view be mutating? If yes, then how?

753


What are the different types of dbms?

729


How do you determine the current isolation level? : Transact sql

752


How do you write an index?

703


Is t sql a programming language?

761