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

Where are my tempfiles, I don't see them in v$datafile or dba_data_file?

944


How do we accept inputs from user during runtime?

990


What is the difference between truncate and drop statements?

1083


Can a foreign key be a duplicate?

858


What does an inner join do?

1090


How to add, remove, modify users using sql?

978


How can triggers be used for the table auditing?

1009


how to select unique records from a table? : Sql dba

1053


What are the different types of tables in sql?

929


What is right join in sql?

1021


what is bdb (berkeleydb)? : Sql dba

974


When you have to use a default "rollback to" savepoint of plvlog?

1123


what is a table in a database ? : Sql dba

989


What is pessimistic concurrency control? : Transact sql

1024


How delete all data from table in sql?

948