Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / omkar hendre
select distinct(sal) from emp a where 2=(select count(distinct(sal)) from emp b where a.sal <=b.sal)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How does sql profiler work?
Which one is better sql or oracle?
What is sap sql anywhere?
Is oracle and sql same?
How to use sql*plus built-in timers?
Is microsoft sql free?
Explain correlated query work?
What is a recursive stored procedure?
how to escape special characters in sql statements? : Sql dba
Is postgresql a nosql database?
What is the difference between the conventional and direct path loader? : aql loader
What are the rules to be applied to nulls whilst doing comparisons?
what is difference between delete and truncate commands? : Sql dba
Explain how to use transactions efficiently : transact sql
Which type of cursor is used to execute the dml statement?