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
what is a scheduled jobs or what is a scheduled tasks? : Sql dba
Is ms sql is free?
What is difference between group by and partition by?
What are the disadvantages of not performing database normalization?
What has stored procedures in sql and how we can use it?
What are the types of dbms?
What is structural independence and why is it important?
how to get help information from the server? : Sql dba
what is self-join? : Sql dba
What are all different types of collation sensitivity?
How to fetch alternate records from a table?
what are date and time functions in mysql? : Sql dba
How do I view a sql trace file?
what are different types of collation sensitivity? : Sql dba
How to test for null values?