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 / om prakash yadav
select * from <Table name> where <condition>
condition:- using BETWEEN
eq:-
select * from emp where empno between( 100 to 200).
| Is This Answer Correct ? | 11 Yes | 17 No |
Post New Answer View All Answers
How to check sequence on a table in db2?
What is the reason behind not using select * in embedded sql programs?
Where do you specify them?
Explain package in db2 and its advantages?
Mention data types used in db2 ?
Which components manage deadlocks in db2?
What is the physical storage length of the data types date, time, and timestamp?
Which component is responsible for processing sql statements and selecting access paths?
What is the use of predicate?
List some fields from sqlca?
What is temporal table in db2?
Mention the downsides of page level lock.
What is dbrm? What it contains?
I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.
What is iseries database?