how to find the second highest salary from emp table?
Answer Posted / nitin umale
SELECT *
FROM employees
WHERE salary =
( SELECT MIN ( r.salary)
FROM ( SELECT salary
FROM ( SELECT DISTINCT salary
FROM employees
ORDER BY NVL(salary,0) DESC
)
WHERE rownum<3) r
);
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are instead of triggers?
What is a sql profiler?
How to take user input in pl sql?
Why trigger is used in sql?
Explain the purpose of %type and %rowtype data types with the example?
Is crud a cuss word?
how to concatenate two character strings? : Sql dba
what is timestamp in mysql? : Sql dba
What are analytic functions in sql?
How to run sql*plus commands in sql developer?
What is sql resultset?
What is percent sign in sql?
What does fetching a cursor do?
What is compiled query?
What is varray in pl sql?