how to find out second largest value in the table

Answer Posted / vishal

select * from (
select * from test where sal < (select max(sal) from test)
order by 2 desc)
where rownum =1

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of triggers in Java program? I mean where do we use triggers in Java programming?

1690


Explain the use of consistent option in exp command.

546


What are the different oracle database objects?

582


Explain the characteristics of oracle dba?

635


What is using clause and give example?

579






What happens to the current transaction if a ddl statement is executed?

571


How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?

1797


What are oracle functions?

551


Explain the use of rows option in exp command.

583


What is the minimum client footprint required to connect c# to an oracle database?

562


what is the difference between restoring and recovering?

548


How would you best determine why your MVIEW couldnt FAST REFRESH?

1432


What is the difference between translate and replace?

552


Explain joins in oracle?

557


What is system global area (sga) in oracle?

569