Write a query to find second highest salary of an employee.
Answer Posted / gautam poonia
SELECT sal
FROM (SELECT sal FROM emp
ORDER BY sal desc)
WHERE RowNum<=2
minus
SELECT sal
FROM (SELECT sal FROM emp
ORDER BY sal desc)
WHERE RowNum<=1
| Is This Answer Correct ? | 17 Yes | 1 No |
Post New Answer View All Answers
what is a relationship and what are they? : Sql dba
What is difference between table and view?
How many types of functions are there in sql?
Can you join views in sql?
How exception is different from error?
What is application trigger?
what is column? : Sql dba
Who developed sql?
Is it possible to remove child records without removing master table records...the two having pk,fk relationship?
What is rowid in sql?
What are tables and fields?
What do you understand by case manipulation functions?
How can you load multi line records? : aql loader
What are the two parts of design view?
Explain the update statement in sql