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 to get Top 10 Salaries from a Table

Answer Posted / sudhakar1.jha@gmail.com

SELECT Data.Amount FROM (
SELECT ROW_NUMBER() OVER(ORDER BY CUR_ANN_AMT DESC) AS RN,
Amount
FROM Employee_table) AS DATA
WHERE DATA.RN BETWEEN 1 AND 10 ;;;;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is db2 command?

1091


What is the reason behind not using select * in embedded sql programs?

1174


Is schema the same as database?

1107


What is null value in db2?

1078


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

1158


What is bind plan?

1097


What is an instance in db2?

1087


What is the cobol picture clause of the db2 data types date, time, timestamp?

1124


What is a db2 cursor?

1111


What is page size in db2?

1027


Why db2 is called db2?

1109


What does db2 blu stand for?

1220


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

1239


What is sqlca’s maximum length?

1250


What are bind parameters in db2?

1097