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 I quit sql?
What programs use sql?
What is data modelling in sql?
What are the different sql languages?
Can a commit statement be executed as part of a trigger?
Write the alter statement to enable all the triggers on the t.students table.
What is a sql schema used for?
Where is sql database stored?
What are the types of records?
What are the main features of cursor?
What is cross join sql?
Is coalesce faster than isnull?
What is mutating error?
Mention what is the plv (pl/vision) package offers?
Is the primary key an index?