Write a query to find second highest salary of an employee.
Answer Posted / mubin ahmad
select salary from employee e1 where 2=(select count(*)
from employee e2 where e2.salary>=e1.salary)
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between numeric and autonumber?
What is difference between procedure and trigger?
What is the difference between microsoft access and sql?
How to pipe multiline string to isql?
How run sql*plus commands that are stored in a local file?
Can a trigger call a stored procedure?
What is the use of procedures?
What is the reports view in oracle sql developer?
how can we know the count/number of elements of an array? : Sql dba
Why is sql important?
What is the clause we need to add in function body to return variable?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
What is sql partition?
What is the purpose of cursors in pl/sql?
What are the different dcl commands in sql?