IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Want to select 10records starting from 11th to 20th


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pankajji
Currently Banned

New User


Joined: 03 Jan 2007
Posts: 5
Location: Delhi

PostPosted: Wed Jan 24, 2007 9:16 am
Reply with quote

Hi,
suppose there are 100 records in a table, I want to select 10records starting from 11th to 20th. What query should I use?

Thanks
Back to top
View user's profile Send private message
jamshirqureshi

New User


Joined: 13 Aug 2006
Posts: 20
Location: mumbai

PostPosted: Wed Jan 24, 2007 10:53 am
Reply with quote

hi,

fetch the cursor with the range,
like

fetch into key 11 to 20
host variable.

thx
jamz
Back to top
View user's profile Send private message
pankajji
Currently Banned

New User


Joined: 03 Jan 2007
Posts: 5
Location: Delhi

PostPosted: Wed Jan 24, 2007 11:14 am
Reply with quote

jamshirqureshi wrote:
hi,

fetch the cursor with the range,
like

fetch into key 11 to 20
host variable.

thx
jamz



Hi,
How can I see the same 10 row by QMF.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Dynamically pass table name to a sele... DB2 2
No new posts SELECT from data change table DB2 5
No new posts Select two different counts from SQL... DB2 6
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts Select a DB2 value in a specific deci... DB2 4
Search our Forums:

Back to Top