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

select max(MAXI) from
(SELECT max(slno) AS MAXI FROM EMPLOYEE WHERE slno not IN(SELECT max(slno) FROM EMPLOYEE )
GROUP BY slno)a

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you explain an index?

1331


What does closing a cursor do?

1373


What is application trigger?

1056


How does sql*loader handles newline characters in a record? : aql loader

1092


Is postgresql a nosql database?

1228


What is sqlca in db2?

1036


how do you tune the slow running queries in oracle db , explain the methodology

3230


Explain the significance of the & and && operators in pl sql.

1048


What do you understand by pl/sql cursors?

1148


what are myisam tables? : Sql dba

1077


What is union?

1250


What are the differences between in and exists clause?

1165


What is data manipulation language?

1232


Can function return multiple values in sql?

1098


How do you create a db file?

1068