adspace


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

Answer Posted / nitin umale

SELECT last_name, salary
FROM (select last_name, NVL(salary,0) salary
FROM employees
ORDER BY NVL(salary,0) DESC )
WHERE rownum<6;

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sql server agent? : Sql dba

1190


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


what is bcp? When does it used? : Sql dba

1065


Does group by remove duplicates?

1122


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

1252


how many tables will create when we create table, what are they? : Sql dba

1157


Is primary key clustered index?

1028


Is inner join faster than left join?

1289


What is the best sql course?

1064


what is dbms? : Sql dba

1072


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

1125


what is schema? : Sql dba

1165


Is primary key always clustered index?

1101


how to start mysql server? : Sql dba

1279


what is collation? : Sql dba

1242