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 / bhaskar reddy

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

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

1138


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

1316


Are views updateable?

1236


Who uses db2?

1114


How to connect to db2 database from windows command line?

1140


Name the lockable units in DB2?

1189


How to check sequence on a table in db2?

1120


What is the difference between cursor stability and repeatable read isolation levels?

1239


What are the two types of logging in the db2 database? Explain them.

1126


How to check table size in db2 sap?

1099


What is the advantage in De-normalizing tables in DB2?

1237


Mention some fields that are a part of sqlca.

1099


What is db2 bind process?

1292


How do you pull up a query which was previously saved in qmf?

1206


What is db2 optimizer?

1316