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

Need SQL for below requirment


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

New User


Joined: 18 Sep 2006
Posts: 11
Location: chennai

PostPosted: Tue Jan 20, 2009 12:36 pm
Reply with quote

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)
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Jan 20, 2009 12:45 pm
Reply with quote

Ameen,

What do you mean by "record num"?
Back to top
View user's profile Send private message
ameenansari

New User


Joined: 18 Sep 2006
Posts: 11
Location: chennai

PostPosted: Tue Jan 20, 2009 12:51 pm
Reply with quote

I want the records from 100 t0 200
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Jan 20, 2009 12:57 pm
Reply with quote

Ameen,

You cannot compare DB2 tables with flat files wherein we can extract the nth record or a set of records, say 100th to 200th.
AFAIK, There is no such record number concept in DB2.
Back to top
View user's profile Send private message
Cristopher

New User


Joined: 31 Jul 2008
Posts: 53
Location: NY

PostPosted: Tue Jan 20, 2009 3:58 pm
Reply with quote

Ameenansari,

What is the actual business requirement behind this request .If you can explain that...someone would surely be able to help u with it.

Cris
Back to top
View user's profile Send private message
aluru_m

New User


Joined: 22 May 2008
Posts: 5
Location: New Jersey

PostPosted: Sat Jan 24, 2009 2:19 am
Reply with quote

You can fetch the records using ROWID
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
This topic is locked: you cannot edit posts or make replies. Mainframe Requirment 5 to 8 years Mainframe Jobs 0
This topic is locked: you cannot edit posts or make replies. Urgent requirment in Capgemini 2 - 7 ... Mainframe Jobs 0
This topic is locked: you cannot edit posts or make replies. requirment in CAPGEMINI (PUNE) Mainframe Jobs 0
No new posts Requirment:Multiple keys in the root ... IMS DB/DC 8
This topic is locked: you cannot edit posts or make replies. Requirment in IMS DB/DC in Syntel Mainframe Jobs 0
Search our Forums:

Back to Top