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

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

1017


Define union, minus, union all, intersect ?

1007


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

1090


How do you define a foreign key?

1005


Is pl sql a programming language?

994


State few characteristics of pl/sql?

971


What is record variable?

993


Explain the structure of pl/sql in brief.

1095


How can you select unique records from a table?

1079


What is a dirty read sql?

1141


Can we insert data into materialized view?

946


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

1009


Is subquery faster than join?

1015


What is the purpose of design view?

1008


Is oracle and sql same?

1013