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
How do I create a view in db2?
How do we specify index to include or not during bind process.
How to find primary key of a table in db2?
Define declaration generator (dclgen).
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
How to rename a table in DB2 ?
What is the usage of open cursor command?
Is it possible using max on a char column?
What are packages in db2?
What is the difference between cursor stability and repeatable read isolation levels?
What is db2 instance?
What is meant by union and union all?
Explain about dbrm.
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
What is db2 catalog database?