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...

how can we find nth max salary from A table

Answer Posted / sivaraman

select * from table1 a where n = (select count(distinct
(sal)) from table1 b where b.sal>a.sal)


n is value of n it should be numeric....

Is This Answer Correct ?    15 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you count the number of rows from a table tab?

1134


What is role in db2?

1157


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

3006


How to fetch the last row from the table in SQL (db2)?

1693


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

1128


What is a bind in db2?

1100


How do you stop a db2 database in linux?

1053


What is page size in db2?

1023


What do you mean by storage group (stogroup)?

1079


What is the use of db2?

1112


How do I add a column to a table in db2?

1155


have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1788


How to find the number of rows in a db2 table?

1154


What is package in cobol db2?

1158


What do you mean by rollback?

1028