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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Starting a CICS Transaction from a Th... CICS 0
No new posts ABEND 0717 during starting IMS IMS DB/DC 0
No new posts Starting a PROC with parameters from ... CLIST & REXX 6
No new posts Inserting into table while open selec... DB2 1
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:


Back to Top