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 raiseerror? What is raiseerror?

1194


what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration

1032


What are the types of stored procedures in an sql server?

1037


Explain what are magic tables in sql server?

1047


Explain what is meant by replication of database?

1106


How to find related tables in sql server?

1003


What it means to be triggered?

1082


What is the difference between char, varchar and nvarchar?

1079


What is instead of dml trigger?

1059


How to disable triggers using "disable trigger"?

1113


What is 2nf normalization form?

1204


What are the different types of cursor?

1151


What is used to replicate sessions between instances in coldfusion clusters?

1105


How to locate and take substrings with charindex() and substring() functions?

1075


What do you mean by cardinality?

945