i have table agdet i want first 5 maximum commission which
query will you write for this thanks in advance

Answer Posted / yuvaevergreen

exec sql
select commission from agdet order by commission desc
fetch first 5 rows only
end-exec;

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If I have a view which is a join of two or more tables, can this view be updateable?

685


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3110


What is view db2?

616


SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected

10726


What is the result of open cursor statement?

628






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

581


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

1699


Mention the location where the output received from explain statement is stored.

625


How to connect to db2 database from windows command line?

556


What do you mean by commit and rollback?

586


What is plan in cobol db2?

580


What is copy pending and check pending in db2?

568


What is host variable in db2 cobol?

591


Explain the contention situations caused by locks?

581


What is the difference between db2 and oracle?

665