find the second highest salary of the emp table

Answer Posted / gyana ranjan behera

sql>select ename,sal from(select ename,sal,rownum rn from
(select ename,sal from emp order by sal desc)
where rn=2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between online and offline backups?

562


How to convert numbers to characters in oracle?

590


What do you mean by a deadlock?

519


How do I limit the number of rows returned by an oracle query after ordering?

640


Explain the importance of .pll extension in oracle?

555






What privilege is needed for a user to insert rows to tables in another schema?

563


hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards

1567


What is memory advisor in Oracle?

639


You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?

1460


Explain the features of oracle?

602


How to run queries on external tables?

572


How many categories of data types?

576


What is oracle latest version?

588


how the indexes are stored in the Oracle Database?

1742


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.

1506