Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why do we need oracle client?

1009


How to establish administrator authentication to the server?

1099


What are the uses of a database trigger?

1037


what's query optimization and without use of IN AND Exist can we get another way data from query

2200


What is a nested table and how is it different from a normal table?

1113


Explain view?

1091


How to execute a stored program unit?

1128


How do I recompile a procedure in oracle?

1018


Explain the use of compress option in exp command.

1073


How to grant create session privilege to a user in oracle?

1055


What is max rowid in oracle?

1085


Explain overloading. Can functions be overloaded?

1049


Write a syntax for update query in oracle?

1076


What are the four Oracle system processes that must always be up and running for the database to be useable?

1055


When do you get a .pll extension in oracle?

1194