How to Select second Maximum salary in a Table ?
Answer Posted / sunil
select max(sal) from table_name where
sal<(select max(sal) from table_name);
or
select sal from(select sal,dense_rank() over(order by sal)
as rnk from table_name) where rnk=2;
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
Why do we use bulk collect in oracle?
Explain what are the uses of rollback segment?
What are dml statements in oracle?
How to define a record variable to store a table row?
How to drop an index in oracle?
Give the various rollback segment states.
What is a named program unit?
How to assign query results to variables?
How many memory layers are in the oracle shared pool?
hi friends i completed b.com 2004.i have 3y accounting exp. in manufacturing company.now i have completed oracle finance.pls suggest me how will get job in oracle.can i get job in oracle.
In oracle there is column command, how will you explain that?
Explain about your project and its relation to the current job position you are applying to?
Does oracle partitioning improve performance?
what is the difference between restoring and recovering?
How to write date and time literals in oracle?