adspace


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

what is schema? : Sql dba

1165


Is primary key clustered index?

1028


What is your daily office routine?

2353


what is collation? : Sql dba

1242


what are the advantages of sql ? : Sql dba

1154


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


Does group by remove duplicates?

1122


Do we need to rebuild index after truncate?

1156


define sql insert statement ? : Sql dba

1110


what is dbms? : Sql dba

1072


Can delete statement be rollbacked?

1065


what are aggregate and scalar functions? : Sql dba

1142


how to start mysql server? : Sql dba

1279


Can we rollback truncate?

1086


What is the current version of sql?

1106