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

How about combingin two queries with set operator EXCEPT,
if you have query A EXCEPT query B, the result would be A-B.

Select * from table A fetch first 200 rows only
Union except
Select * from table A fetch first 100 rows only

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Comment whether the cursor is closed during commit or not.

853


How does cobol compile db2 program?

802


What is a db2 table?

755


Explain the benefits you can get from mainframe connect?

717


What is precompiler in db2?

757


What is lock escalation in db2?

768


What is isolation level in db2?

747


Explain correlated sub-queries.

757


What is ibm db2 used for?

813


If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2

1784


Which isolation level provides highest data integrity?

803


What is the use of dclgen in db2?

781


What is the maximum length of sqlca?

1102


What is the use of value function?

825


What is dclgen (declaration generator)?

804