I have a table which has thousand of records i want to
fetch only record num 100 to record num 200. Write a query
that satisfies this criteria.(Cant use any keys)
Anyone please reply ASAP!

Answer Posted / m4io

scrollable cursors
------------------
DECLARE cursor_name sensitivity SCROLL CURSOR FOR
SELECT ... FROM ...

open cursor

FETCH ABSOLUTE 100 FROM cursor_name

do 100 times
FETCH NEXT FROM cursor_name

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by union and union all?

585


Is it possible to create an Instance in DB2 using DB2 Control Center ?

630


What is dbrm library?

578


Name the various locking levels available?

632


What is a collection in db2?

579






How to check sequence on a table in db2?

600


What is copy pending and check pending in db2?

577


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

624


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

749


What is table space in db2?

580


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

10771


What is performance tuning db2?

618


Explain about rct.

648


Explain various types of locks in db2?

689


What is netezza database?

573