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
How do we use distinct statement? What is its use?
What are the various restrictions imposed on view in terms of dml?
Can we insert data into view?
Explain the uses of control file.
Why indexing is needed?
What is a scalar value in sql?
How to add, remove, modify users using sql?
What is the difference between null value, zero, and blank space?
what's the difference between a primary key and a unique key? : Sql dba
How to create an array in pl/sql?
What is difference between rank () row_number () and dense_rank () in sql?
Can we create table in function?
What is audit logout in sql profiler?
What are the different ways to optimize a sql query?
How to run pl sql program in mysql?