find out the second highest salary?
Answer Posted / abhijit ramakant parb
select min(a.sal) from(select distinct d.sal from emp d
order by sal desc) a where rownum<=2;
To retrieve all columns
select * from emp where sal=(select min(a.sal) from(select
distinct d.sal from emp d order by sal desc) a where
rownum<=2);
| Is This Answer Correct ? | 12 Yes | 6 No |
Post New Answer View All Answers
What are data pump export and import modes?
How to connect the oracle server as sysdba?
Explain database link?
What are the limitations oracle database 10g xe?
What are the different types of modules in oracle forms?
How to manage transaction isolation level?
What is private procedure oracle?
When system tablespace is created?
How to invoke the data pump export utility?
Explain the use of online redo log files in oracle.
what is the difference between substr and instr function in oracle?
What is the simplest tool to run commands on oracle servers?
What is a proxy class?
What is the difference between sharding and partitioning?
what are steps for interface? where is exchange rate defined in which table?