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 / rajesh.m

Crete Table Curtest(Emp char(40),salary money)
------------------------------------------------
Select Min(Salary) from Curtest where Salary
in (select Top 2 Salary from Curtest)

--------------------------------------------------

Is This Answer Correct ?    21 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is faster truncate or drop?

1043


what is the difference between inner and outer join? Explain with example. : Sql dba

1023


Is hadoop a nosql?

996


What does bitemporal mean?

1063


How to add new employee details in an employee_details table with the following details

1089


Is sql an operating system?

1017


What is the difference between drop and truncate commands?

1058


Can we create foreign key without primary key?

983


How do you write a subquery?

1023


How do I add a primary key to a table?

1040


What is optimistic concurrency control? : Transact sql

981


What is right join in sql?

1087


what is table? : Sql dba

1060


Which sql statement is used to delete data from a database?

954


what is row? : Sql dba

1224