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's the procedure?
How do I know if I have sql express or standard?
What is a stored procedure in sql with example?
What is restrict in sql?
what is blob? : Sql dba
how to load data files into tables with 'mysqlimport'? : Sql dba
What is mutating error?
What is clustered and nonclustered index in sql?
What are user defined functions?
How would you reference column values before and after you have inserted and deleted triggers?
What is the difference between a database and a relational database?
Define sql delete statement.
Explain correlated query work?
How do I tune a sql query?
Is sql harder than python?