find out the second highest salary?
Answer Posted / peter
SQL> select sal
2 from (select sal,
3 row_number() over
4 (order by sal desc ) rn
5 from emp )
6 where rn = 2;
SAL
----------
3000
SQL>
| Is This Answer Correct ? | 13 Yes | 15 No |
Post New Answer View All Answers
What are the differences between primary key and unique key?
What is Library Cache in Oracle?
How to download oracle database 10g xe?
What is background process in Oracle?
How do I use os authentication with weblogic jdriver for oracle and connection pools?
Please explain joins in oracle?
In what script is snap$ created? In what script is the scott/tiger schema created?
Can we write dml statement in function in oracle?
nw i'm doing MBA system and planning to do oracle,database management.tell me that whether it is useful r not?.refer any course for my carrier pls
What happens if you lost a data file?
In Oracle Applications We are Using Sub Ledger Accounting. When we Transfer the Data all modules (AP,AR,CE,FA) to SLA We done Some customizations? What are They??
Name the three major set of files on disk that compose a database in Oracle?
What is redo log?
How to rename an existing table?
What is a table index?