find out the second highest salary?

Answer Posted / shiv prakash

select salary from(select rownum as r,salary from(select
rownum,salary from emp order by salary
desc))where r=2;

Is This Answer Correct ?    20 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to load data through external tables?

583


How to view the tablespaces in the current database?

559


How to sort the query output in oracle?

610


What is a user account in oracle?

627


What to do if the binary spfile is wrong for the default instance?

562






What to do if dba lost the system password?

597


How to export your own schema?

572


22. Display the order number, number of lines in the order, total number of items and total value for all orders that have a total value greater than $100

1602


What happens if you set the sga too low in oracle?

554


What is oracle update statement with inner join ?

580


Explain integrity constraint?

644


Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.

1504


What is key preserved table?

561


What is a proxy object?

581


Explain oracle instance.

682