Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Want to select 10records starting from 11th to 20th
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    Post subject: hi
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    Post subject: Re: hi
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm
No new posts Select first 2 group data vice_versa DFSORT/ICETOOL 10 Mon Jun 13, 2016 2:21 pm
No new posts starting cicstg EXCI problem meykh2014 CICS 3 Mon Apr 11, 2016 3:36 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us