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 are predefined functions in sql?
Explain exception handling in pl/sql?
Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?
Is vs as in pl sql?
When sql appeared?
What are the different ways to optimize a sql query?
How do you sort in sql?
How to use transactions efficiently : transact sql
discuss about myisam index statistics collection. : Sql dba
What can I use instead of union in sql?
What is delimiter sql?
What is a heap in sql?
How can we implement rollback or commit statement in a trigger?
What is an inner join sql?
What are the different types of dbms?