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 copy pending status in db2?

636


What is db2?

741


How do you select a row using indexes in db2?

645


Is db2 free?

684


What's The Error Code For Unique Index Voilation?

652






What language is db2 written in?

595


Which component is responsible for processing sql statements and selecting access paths?

670


What is rct?

751


What is the difference between drop table and delete table?

554


Which isolation level provides highest data integrity?

599


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

2688


What is db2 stogroup?

675


What is dbrm? When it will be created?

598


Discuss about db2 bind?

670


What is db2 bind?

639