adspace


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

Answer Posted / yogesh sharma

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

Is This Answer Correct ?    77 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sql server agent? : Sql dba

1190


what are all the common sql function? : Sql dba

1143


what is collation? : Sql dba

1242


what are the advantages of sql ? : Sql dba

1154


Is inner join faster than left join?

1289


If a cursor is open, how can we find in a pl/sql block?

1252


how to start mysql server? : Sql dba

1279


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


how to use regular expression in pattern match conditions? : Sql dba

1125


Can we use distinct and group by together?

1148


Is primary key clustered index?

1028


what is dbms? : Sql dba

1072


What is the current version of postgresql?

1188


what is schema? : Sql dba

1165


Does group by remove duplicates?

1122