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

Select Top 1 * From Tablename where salary in
(select top 2 salary from tablename order by salary desc)
order by salary asc

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

It is important form e to get the information from log files of applications executed by the task scheduler? Does sql studio save these log files? : sql server management studio

977


explain databases and sql server databases architecture? : Sql server database administration

908


How can I create a new template for import ? : sql server management studio

1022


What is CTE in SQL

874


Why the trigger fires multiple times in single login?

1152


What are the differences between union, intersect, and minus operators?

1017


Can we write trigger for view?

950


How would you choose between a clustered and a non-clustered index?

916


Explain filtered indexes?

931


How to edit table in sql server 2017?

879


How will you monitor replication latency in transactional replication? : sql server replication

1086


How to list all triggers in the database with sys.triggers in ms sql server?

1013


What is log ldf?

930


What are the advantages of user defined function?

917


What are the dmvs?

950