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 do you identify a primary key?

627


what is difference between delete and truncate commands? : Sql dba

576


What are the different ddl commands in sql?

579


what does myisamchk do? : Sql dba

556


ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..

2005






why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

557


What is scalar function?

567


What does := mean in pl sql?

554


How can we find duplicate records in a table?

513


What is constant in pl sql?

518


What are the different types of constraints?

562


What is rollback?

581


Mention what plvcmt and plvrb does in pl/sql?

639


what is the difference between nested subquery and correlated subquery?

549


what is a materialized view? : Sql dba

572