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
Why plvtab is considered as the easiest way to access the pl/sql table?
What version is sql?
What is full join?
Can we use threading in pl/sql?
what is innodb? : Sql dba
Can we join same table in sql?
Explain raise_application_error.
what is a database? : Sql dba
Does sql full backup truncate logs?
how to drop an existing index in mysql? : Sql dba
What is a temporal table?
what are all different types of collation sensitivity? : Sql dba
Why do we need cursors in pl sql?
What are the different schemas objects that can be created using pl/sql?
what are the advantages a stored procedure? : Sql dba