Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / rajesh
Guess this works...
select max(sal)
from (select * from emp
where sal not in (select max(sal) from emp))
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how mysql optimizes distinct? : Sql dba
What is sql resultset?
What are sql objects?
What is compiled query?
What is primary and foreign key?
How does postgresql compare to mysql?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
How can we debug in PL/SQL?
Is stored procedure faster than query?
describe mysql connection using mysql binary. : Sql dba
What is mdb stand for?
How do I remove all records from a table?
Which is better stored procedure or query?
What is Collation Sensitivity ? What are the various type ?
what is text? : Sql dba