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 / rajeshkumar

SELECT * FROM TCB732D.AR_AR WHERE NUM_SEQ_AR IN(
SELECT NUM_SEQ_AR FROM TCB732D.AR_AR ORDER BY NUM_SEQ_AR
FETCH FIRST 200 ROWS ONLY)
ORDER BY NUM_SEQ_AR FETCH FIRST 100 ROWS ONLY

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is copy pending status in db2?

846


What is null value in db2?

744


i want to maintain uniqueness on pdf without make lf??????????

1882


Explain about rct in db2?

854


What is the purpose of rollback and commit?

784


How do you concatenate the firstname and lastname from emp table to give a complete name?

790


What is the physical storage length of the data types date, time, and timestamp?

844


How to find schema of a table in db2?

736


What is deadlock in db2?

787


What is buffer pool?

831


What is db2 plan table?

803


What is cursor in dbms?

809


What is cursor with hold option in db2?

791


How can tablespace be moved to another dasd volume that is allocated for that tablespace?

957


What is the use of runstats in db2?

770