Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / uday
Hi friends i think it is surely work because i worked for this.
select * from emp e where 1=(select count(distinct d.esal)
from emp d where d.esal>e.esal)
any one plz try if it's not work
plz let me know.
uday_testing@yahoo.co.in
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
How to read xml file in oracle pl sql?
What is difference between db2 and sql?
tell us something about heap tables. : Sql dba
What are stored procedures in mysql?
explain access control lists. : Sql dba
What is the file extension for sql database?
Does sql support programming?
What is the difference between the conventional and direct path loader? : aql loader
What is sql profiler in oracle?
Why do we need databases?
how to get help information from the server? : Sql dba
Explain about various levels of constraint.
what is datawarehouse? : Sql dba
What is the difference between partition and index?
what is the difference between truncate and drop statements? : Sql dba