How to Select second Maximum salary in a Table ?

Answer Posted / sephali

select sal, rownum
from (select sal from table
order by sal desc)
where rownum=2

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write a left outer join with the where clause in oracle?

634


WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?

1706


How can I convert single byte kana characters into multi byte kana characters and vice-versa.

1940


Can any one explain me when i execute below query.. select months_between('07-JUL-12','10-FEB-12') from dual; Out put:- 4.90322581 How oracle calculate?

936


What is Segment Advisor in Oracle?

676






what is the use of system.effective.date variable in oracle?

676


How to rename an index in oracle?

623


What are the components of logical database structure in oracle database?

586


What is materialized view in Oracle?

635


What is redo log?

628


 What are the oracle DML commands possible through an update strategy?

583


How to write text literals in oracle?

616


what happened to the global index when I truncate the data in one of the partition?

1525


why dont we assign not null constraint as table level constraint.

2257


Explain coalesce function?

630