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 / babbu

it's easy with self join:
select max(sal) from emp e1,emp e2 where e1.sal < e2.sal

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is recursive join in sql?

948


What are crud methods?

971


what are myisam tables? : Sql dba

956


What is pl sql package?

993


What is the least restrictive isolation level? : Transact sql

999


What is the difference between delete and truncate commands?

979


what is commit? : Sql dba

1029


What is user in sql?

970


What is difference between pls_integer and integer?

910


how to calculate the difference between two dates? : Sql dba

996


How do sql databases work?

947


Why is normalization important?

973


What is a sql*loader control file?

1165


what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba

1067


how many ways we can we find the current date using mysql? : Sql dba

1039