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

Which is faster truncate or drop?

1043


What is a common use of group by in sql?

1048


What is server name sql?

1141


What is sequence in sql?

998


Define the select into statement.

1047


What is rename in sql?

970


What are the commands used in sql?

1077


How exception is different from error?

1014


what is the difference between char_length and length? : Sql dba

1040


What is the difference between subquery and correlated query?

1063


Can we update views in sql?

938


How to load data with sql*loader?

1046


how can I make a script that can be bi-language (supports english, german)? : Sql dba

1010


what is acid property in database? : Sql dba

1026


Why do we go for stored procedures?

1053