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
How much does a sql dba make? : SQL DBA
What is sql analyzer?
What is a data definition language?
How do you bind variables in pl sql?
Is there a 64 bit version of ssms?
How to test for null values?
Explain the uses of database trigger.
What is the purpose of the sql select top clause?
What is difference between mysql and postgresql?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
What is the file extension for sql database?
How do you determine the current isolation level? : Transact sql
What are the features of pl sql?
Does mysql support pl sql?
What is varchar data type in sql?