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

(
select top(2)sal
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

What is a native sql query?

1078


what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba

1051


What is memory optimized table?

1049


What is sql keyword?

1006


Mention what are the benefits of pl/sql packages?

1084


What is the use of desc in sql?

978


How do I run a sql query?

1026


What is rank function in sql?

1031


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

1227


What is the sql*loader? : aql loader

1056


how to include character strings in sql statements? : Sql dba

1077


What is the difference between pl and sql?

1096


Is big data nosql?

954


What is a composite primary key?

1096


What does pragma mean?

1060