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 / niladri saha

into my above solution,u can get whatever position u want,only by giving "n" at the place of "2" at row num. That the right way to write the query. That u can use in dynamically.
Thanks,
like if ur require ment to print empnames of having 3rd max salary,then put 3 at rownum.
Niladri Saha.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does truncate require commit?

963


What trigger means?

972


What is memory optimized table?

1037


How to find 3rd highest salary of an employee from the employee table in sql?

1078


Explain the difference between 'between' & 'and' operators in sql

993


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

1120


tell us something about heap tables. : Sql dba

1092


Do prepared statements prevent sql injection?

947


How does postgresql compare to mysql?

1030


What is anonymous block in sql?

1116


What is string data type in sql?

1133


How is debugging done?

966


How do you break a loop in pl sql?

1042


What are the two different parts of the pl/sql packages?

1078


What is forward declaration in pl sql?

1071