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

Very simple answer: Arrange the top two salaries in
decending order. Select the mininum salary.

Select min(salary) from Employee where salary in(select top
2 salary from employee order by salary desc)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are the different types of indexes in sql?

1070


How can you create an empty table from an existing table?

1087


Explain autonomous transaction.

1168


what is the difference between union and union all? : Sql dba

1030


What is meant by <> in sql?

984


What is sqlservr exe?

988


Differentiate between sga and pga.

1172


what are the non-standard sql commands supported by 'mysql'? : Sql dba

1134


How do I find duplicates in a single column in sql?

1032


What is a rank in sql?

971


Can we join two tables without common column?

1022


Is primary key clustered index?

956


How many types of literals are available in pl sql?

1127


What is sql architecture?

1060


How delete all records from table in sql?

986