How to get Top 10 Salaries from a Table

Answer Posted / abirami

Sorry.. Answer 1 given by me is incorrect.

Correct Query is

select disntinct salary from tablename
Order by salary
Fetch first 10 rows only

Is This Answer Correct ?    9 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a collection in db2?

584


What is with ur in db2?

760


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

1938


What are bind parameters in db2?

613


What is meant by explain?

662






What is iseries database?

597


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

714


What is copy pending status in db2?

638


What is the role of the data page in the db2 database?

589


How do I start db2 in windows?

567


What is the maximum length of sqlca?

869


What does sqlcabc has?

633


What does reorg do in db2?

578


Explain db2.

620


What are the full forms of spufi and dclgen and why are they used?

658