Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sushma
SELECT * from
(SELECT * FROM emp ORDER BY sal DESC)
WHERE rownum <= 2
MINUS
SELECT * from
(SELECT * FROM emp ORDER BY sal DESC)
WHERE rownum < 2
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is latest version of sql?
define sql delete statement ? : Sql dba
What are sql queries used for?
What is a loop in sql?
how to run 'mysql' commands from a batch file? : Sql dba
explain the advantages and disadvantages of stored procedure? : Sql dba
Can a table contain multiple foreign key’s?
What is serial sql?
What is the use of triggers?
Do foreign keys improve performance?
Is sql a scripting language?
What is use of package in pl sql?
What does the file extension accdb stand for?
How do I send sql query results to excel?
what is schema? : Sql dba