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

Can we join 3 tables in sql?

1106


How to select 10 records from a table?

1204


How to set up sql*plus output format in oracle?

1079


Is it possible to include an insert statement on the same table to which the trigger is assigned?

1061


Cite the differences between execution of triggers and stored procedures?

1136


How many aggregate functions are available there in sql?

1018


What is scalar data type in pl sql?

1113


Which is better trigger or stored procedure?

1012


What is trigger in sql and its types?

1107


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

1052


What is tuple in sql?

1141


What is a sql driver?

1039


Explain the the update statement in sql?

1098


Explain alias in sql?

1091


What schema means?

939