How to get Top 10 Salaries from a Table
Answer Posted / shammi
SELECT *
FROM (select * from employee ORDER BY salary desc) employee2
WHERE rownum <= 10
ORDER BY rownum;
correct me if am wrong
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can you tell me how can you find out the # of rows updated after an update statement?
Is the primary key a clustered index?
How connect db2 database to datastage?
How is a typical db2 batch pgm executed?
Explain about rct in db2?
Explain how can you do the explain of a dynamic sql statement?
Who uses db2?
If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?
What are the various data types available in db2?
What is a page in db2?
What is the purpose of using commit?
How can you do the explain of a dynamic sql statement?
What is meant by explain?
What is a cursor in programming?
How would you find out the total number of rows in a db2 table?