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 clause?

1146


What is sqlerrd?

967


What is difference between sql and mysql?

1128


Why is there a need for sqlcode and sqlerrm variables?

1046


What is trigger explain it?

1011


Can instead of triggers be used to fire once for each statement on a view?

962


Can we use rowid as primary key?

985


What is a sql profiler?

1020


Explain table and field in sql?

1060


Why select is used in sql?

1015


What is mdb stand for?

1005


Can cursors be part of a trigger body?

1637


Why we use stored procedure instead of query?

997


How to raise user-defined exception with custom sqlerrm ?

1126


Can we insert data into view?

897