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

Can I learn sql in a week?

1121


Explain the working of primary key?

1155


what is a scheduled jobs or what is a scheduled tasks? : Sql dba

1015


What are the commands used in sql?

1135


How do you update a value in sql?

1103


When you have to use a default "rollback to" savepoint of plvlog?

1252


How do I make sql search faster?

1044


write an sql query to find names of employee start with 'a'? : Sql dba

1089


Mention what pl/sql package consists of?

1045


what are all types of user defined functions? : Sql dba

1089


Is natural join and inner join same?

993


Which command is used to call a stored procedure?

1055


who introduced sql?

1074


what are tables and fields? : Sql dba

1105


what is the syntax used for partition in tsql? : Transact sql

1061