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...

can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / kavitha.r

This query is generalised query if u replace 2 by 100 ,
then you will get 100th max salary


select top 1 salary from employee where salary in( select
top 2 salary from employee order by salary desc) order by
salary asc

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign null values to variables or columns?

915


how to determine the service pack currently installed on sql server? : Sql server database administration

909


What is mean by candidate key?

949


What is tempdb in sql server?

922


What is implicit cursors?

1006


What are the different types of replication you can set up in sql server?

985


Write the syntax for stuff function in an sql server?

979


What are the disadvantages of using the stored procedures?

1019


What do you understand by the denormalisation?

911


What is candidate key with example?

925


How do I view a stored procedure in sql server query?

889


Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many

890


How to add an address record into adventureworkslt?

936


Explain about Views?

1011


How to encrypt Strored Procedure in SQL SERVER?

1099