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
Why we use cross join?
What is the purpose of the partition table?
What is the best sql course?
what is rdbms? : Sql dba
What does count (*) mean?
is it possible to pass an object or table to a procedure as an argument?
What information is needed to connect sql*plus an oracle server?
Explain how can you save or place your msg in a table?
What is set serveroutput on?
How to run sql functions in pl/sql?
How many types of primary keys are there?
Explain dml and ddl?
What are conditional predicates?
What is a delimiter in sas?
Explain the advantages and disadvantages of stored procedure?