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...

write the query for find the top 2 highest salary in sql
server

Answer Posted / suhail qaiser

or if u want 2nd highest then write this query

select Top 1 salary from ( select top 2 salary from
emp_table order by salary desc)temptable order by salary
asc.

Is This Answer Correct ?    29 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does asynchronous call backs means?

1146


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

1058


How to retrieve error messages using mssql_get_last_message()?

1040


What is the difference between row_number and dense_rank?

872


Why use triggers?

1005


Why do we use trigger?

958


How to trouble shoot if unable to connect SQL Server

1984


Suggest a method of joining two tables.

1150


What are the built in functions in sql server?

976


How to get a list of all tables with "sys.tables" view in ms sql server?

1030


What is BLOCK statements in SQL?

1259


Can another user execute your local temporary stored procedures?

976


What is difference between materialized view and view?

905


optimization techinques

2665


Can we add a cpu to sql server?

1003