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
What is varchar sql?
What is pl sql block structure?
Enlist the characteristics of pl/sql?
How can I change database name in sql?
what is myisam? : Sql dba
What is identity column in sql server?
What are the most important characteristics of pl/sql?
How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?
What is sql*loader?
What is an implicit commit?
How to convert comma separated string to array in pl/sql?
What operators deal with null?
What is meant by truncate in sql?
Show the two pl/sql cursor exceptions.
What is hibernate and its relation to sql?