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

Answer Posted / mk

SELECT ENAME,SALARY FROM (SELECT ENAME,SAL FROM EMP ORDER
BY SALARY DESC ) WHERE ROWNUM<6;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How delete a row in sql?

717


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

735


Why do we use partitions in sql?

718


When is the update_statistics command used?

769


What has stored procedures in sql?

779






Can we delete column in sql?

765


What is trigger and how to use it in sql?

723


how to do backup entire database? : Transact sql

880


how can we know the count/number of elements of an array? : Sql dba

772


Is there any restriction on the use of union in embedded sql?

880


What does the file extension accdb stand for?

707


Does pl sql work in mysql?

687


How many triggers can be applied on a table?

672


What is the use of count (*) in sql?

752


what is a primary key? : Sql dba

749