how to find the second highest salary from emp table?
Answer Posted / subash pandey
SELECT salary
FROM employee e
WHERE n = (
SELECT count( * )
FROM employee
WHERE salary > e.salary )
n=1 or 2 or 3 n is level which level max salary you want
i test this it proper work
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
How to assign sql query results to pl sql variables?
What is the command used to fetch the first 5 characters of a string?
How do I view output in sql developer?
Give the order of sql select?
Why plvtab is considered as the easiest way to access the pl/sql table?
what are the types of join and explain each? : Sql dba
What is the difference between joins?
What are inner outer left and right joins in sql?
How do I create a memory optimized filegroup?
What is bitemporal narrowing?
what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba
What is trigger in sql and its types?
What is the difference between sql and mysql?
Is id a reserved word in sql?
What are the types of queries in sql?