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

What is encryption key?

132


Write a code to select distinct records without using the DISTINCT keyword.

1120


Do you know what is user defined datatypes and when you should go for them?

968


Can we take the full database backup in log shipping?

956


What is data compression?

1016


Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.

1014


Explain the microsoft sql server delete command?

1028


When we should use @@error?

977


What is Federation Root Database?

104


What is pessimistic concurrency?

980


What is repeatable read?

1024


How to download microsoft sql server 2005 express edition?

1052


What is difference between foreign key and unique key?

1017


What is an etl file?

958


How to change a login name in ms sql server?

1092