how to select second mauximum value in a given table under salary column

Answer Posted / shri

select min(sal) from (select * from emp order by sal desc) where rownum<3

IN Informatica also use the query in source qualifier's
"sql override". which will reduce d no. of t/r in d mapping

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to run the anonymous block again?

595


What are the four Oracle system processes that must always be up and running for the database to be useable?

589


What is the relation of a user account and a schema in oracle?

583


Explain cascading triggers.

572


How to bring a tablespace online?

518






What is the data pump import utility?

577


How to fetch the row which has the max value for a column?

538


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

1728


What is an oracle and why it is used?

619


How to create a new table in oracle?

589


What are the set operators union, union all, minus & intersect meant to do?

560


Explain overloading. Can functions be overloaded?

568


Explain self joins in oracle?

558


Where do we use decode and case statements?

557


How to connect to a remote server?

553