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 salary
<> (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

How many types of schemas are there?

973


What are the advantages of having an index on the sql server?

874


What are the export options of ssrs?

165


what is the different types of backups available in sql server? : Sql server database administration

883


What is the purpose of forms?

909


Which table keeps information about stored procedures?

892


How to use subqueries with the in operators in ms sql server?

1014


What are the different acid properties?

1014


List out the differences between the clustered index and non-clustered index in sql server?

948


Why should one not prefix user stored procedures with ‘sp_’?

987


How do I edit a stored procedure in sql server?

883


how to do partition in sqlserver

2413


in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it

1453


Thanks to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?

894


Why is there a performance difference between two similar queries where one uses union and the other uses union all?

986