Anybody can tell me, how do we find second largest emp
salary from emp table.. Thanks in advance ...

Answer Posted / martin

select e.sal from emp e where &2>(select max(count{a.sal})
from emp a where a.sal > e.sal order by desc
)

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an oracle wallet?

508


i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)

1801


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

1642


What is system global area (sga) in oracle?

569


How can you use check constraints for self referential integrity?

520






Is there an oracle sql query that aggregates multiple rows into one row?

541


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?

928


What is logical backup in oracle?

574


How to revoke create session privilege from a user in oracle?

552


What is a data lock in oracle?

607


Explain the use of tables option in exp command.

589


What is a cognitive schema?

525


How to create a stored program unit?

576


What are the differences between lov and list item?

557


Is it possible to set second Primary Key Constraint in a table in Oracle Database ?

639