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 / santosh kumar

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

Is This Answer Correct ?    13 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use functions?

857


Explain sub-query?

902


How many types of dimensions are there and what are they? : sql server analysis services, ssas

1029


What is the difference between web edition and business edition?

111


What are the rules to use the rowguidcol property to define a globally unique identifier column?

966


List the types of recovery model available in sql server?

873


What is acid db?

841


What is the importance of three tier architecture?

1027


How do you run a trace?

850


What is the need for indexing?

889


How to assign null values to variables or columns?

915


Explain the steps needed to create a scheduled job?

886


Can binary strings be used in arithmetical operations?

887


Can group by be used without aggregate functions?

857


Explain what is the main purpose of having conversation group?

882