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
Mention the way of highlighting as well as putting a cursor to use in a cobol program.
What is dbrm?
What is the connection string to connect to the DB2 Database ?
What is check constraint. Explain with example.
What is null in db2?
What is a system catalog table in db2?
How do I copy a table in db2?
How can tablespace be moved to another dasd volume that is allocated for that tablespace?
Discuss about db2 bind?
What is host variable in db2 cobol?
How to run db2 command in windows?
What is the physical storage length of timestamp data type?
How can you count the number of rows from a table tab?
Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?
How to check table size in db2 sap?