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 a query to get 2nd maximum salary in an employee table ?

Answer Posted / sandeep

select top(1) a.name
from

(
select top(2) name,salary
from
employee
order by salary desc
)a
order by a.salary asc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is sql an operating system?

1023


How to get each name only once from an employee table?

1120


what is the difference between nested subquery and correlated subquery?

1060


What is the least restrictive isolation level? : Transact sql

1079


List the various privileges that a user can grant to another user?

1047


What are sql indexes?

1005


What is the difference between count 1 and count (*) in a sql query?

1001


Which version of sql do I have?

1068


differentiate between float and double. : Sql dba

1065


What is prepared statement in sql?

1060


What port does sql server use?

1070


What are aggregate functions in sql?

1169


How do I trace sql profiler?

995


What is a database event trigger?

1165


define join and explain different type of joins? : Sql dba

957