How to get Top 10 Salaries from a Table
Answer Posted / meena dogra
The query will be like this:
Select distinct salary from table
order by salary desc
fetch first 10 rows only
| Is This Answer Correct ? | 31 Yes | 5 No |
Post New Answer View All Answers
What is temporal table in db2?
What is the physical storage length of timestamp data type?
Is db2 a mainframe?
What is the role of schema in the db2 database?
What does reorg do in db2?
How to find schema of a table in db2?
B37 abend during spufi?
How to test SQL -911 error while developing COB-DB2 program
How does db2 sample database connect?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
Which is faster delete or truncate?
What is copy pending status in db2?
Can we delete records from view?
Mention the different locking levels that are available in db2.
How do you eliminate duplicate values in db2?