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 / harikumar

select max(salary) as secondMax from employee where id <>
(select max(salary) from employee)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between createstatement and preparedstatement?

942


How to view existing indexes on an given table using sys.indexes?

1091


Why use update_statistics command in sql server?

1058


What is ms sql server service broker?

993


What is fill factor and pad index?

1014


How to apply filtering criteria at group level with the having clause in ms sql server?

1002


Can we write ddl in trigger?

919


How to grant a permission in ms sql server using "grant execute" statements?

1094


What is page-level compression?

965


What is the maximum number of instances in 32 bit and 64 bit sql server 2012?

986


How much memory that we are using in Logshipping Concept?

1797


What will be query used to get the list of triggers in a database?

1005


What does REVERT do in SQL Server 2005?

963


In how many ways you can invoke ssrs reports?

139


What information is maintained within the msdb database?

982