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 find the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / subhranghshu bhattacharjee

another way u can find 2nd largest salary,3rd largest
salary ... so on

select sal from(select sal from emp order by sal desc)
where rownum<3
minus
select sal from(select sal from emp order by sal desc)
where rownum<2

only change rownum to find various largest salary

Subhranghshu Bhattacharjee

Is This Answer Correct ?    4 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know nested transaction?

964


What is service broker? : sql server database administration

1000


what is the difference between a primary key and a unique key? : Sql server database administration

1010


Explain the different types of backups available in sql server? : sql server database administration

932


What are entities and relationships?

976


What are the benefits of filtered indexes?

1043


What are system databases into sql server (2005/2008)?

1004


How to get a list of columns in a view using "sys.columns" in ms sql server?

996


What is the return type of executeupdate ()?

910


Explain cdc and sql injection?

989


How can I track the changes or identify the latest insert-update-delete from a table?

972


System requirements for sql server 2005 express edition?

1036


What is de-normalization in sql database administration? Give examples?

989


Why use stored procedures in sql server?

1021


how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

915