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 use of friend function? : Sql dba

1017


how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba

1182


what are all the different normalizations? : Sql dba

1030


Do stored procedures prevent sql injection?

963


Is there a 64 bit version of ssms?

954


What is linq to sql?

1129


What is the clause we need to add in function body to return variable?

1009


What are the syntax and use of the coalesce function?

1192


What is pl sql and why it is used for?

1109


What can I use instead of union in sql?

961


Is mariadb a nosql database?

1042


How can we solve sql error: ora-00904: invalid identifier?

1243


How does pl sql work?

957


What is dml with example?

1080


Can dml statements be used in pl/sql?

1071