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

What is the difference between cross join and natural join?

1022


hi,i plan to put experience on PLSQL ,can anyone suggest me for any institutes in bangalore or how to prepare for interviews

2016


How do I find duplicates in two columns?

1172


What are the different ways to optimize a sql query?

948


how to use case expression? : Sql dba

1031


how to select first 5 records from a table? : Sql dba

980


How do I edit a stored procedure?

996


How do I find duplicates in the same column?

1089


What is the difference between partitioning and sharding?

1008


Can there be more than one function with a similar name in a pl/sql block?

985


What is exit statement?

1020


What does 0 mean in sql?

969


How delete a row in sql?

998


Can we use views in stored procedure?

1035


How many parts of a pl sql block are optional?

1137