How to Select second Maximum salary in a Table ?
Answer Posted / abhijit
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
desc)
as rnk from table_name) where rnk=2;
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How to speed up webrick?
How to update values on multiple rows in oracle?
Explain rename?
What are the ansi data types supported in oracle?
How to use group functions in the select clause using oracle?
What types of joins are used in writing subqueries?
How to start a new transaction in oracle?
How to create tables for odbc connection testing?
What is an oracle tablespace?
How do I uninstall oracle 11g?
Explain oracle left join with an example?
How to connect the oracle server as sysdba?
Oracle
What is null value in oracle?
What is parameterized cursor in oracle?