find out the second highest salary?

Answer Posted / anitha

select min(salary)
from (select distinct salary
from employee
order by salary desc)
where rownum <= 2

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to establish administrator authentication to the server?

558


what is the dual table in oracle?

551


Explain oracle instance.

680


What is a connect identifier?

537


Explain an exception and its types?

611






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

1436


What is max rowid in oracle?

552


What is memory advisor in Oracle?

634


how may join possible between (requisition with purchase order)

1699


how the indexes are stored in the Oracle Database?

1738


How to compare dates in oracle sql?

651


How to connect to the server with user account: sys?

564


How to open a cursor variable?

606


What is PL/SQL ?

1112


How to display employee records who gets more salary than the average salary in the department?

597