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
 

 

Need SQL for below requirment

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Need SQL for below requirment
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: 2181
Location: @my desk

PostPosted: Tue Jan 20, 2009 12:45 pm    Post subject:
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    Post subject:
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: 2181
Location: @my desk

PostPosted: Tue Jan 20, 2009 12:57 pm    Post subject:
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    Post subject: Reply to: Need SQL for below requirment
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    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. Mainframe Requirment 5 to 8 years lokeshmehtacse Mainframe Jobs 0 Tue Jun 22, 2010 7:28 pm
This topic is locked: you cannot edit posts or make replies. Urgent requirment in Capgemini 2 - 7 ... capricorn Mainframe Jobs 0 Mon Apr 05, 2010 4:52 pm
This topic is locked: you cannot edit posts or make replies. requirment in CAPGEMINI (PUNE) abhisinghal2002 Mainframe Jobs 0 Sat Oct 18, 2008 1:05 pm
No new posts Requirment:Multiple keys in the root ... Bitneuker IMS DB/DC 8 Thu May 31, 2007 4:44 pm
This topic is locked: you cannot edit posts or make replies. Requirment in IMS DB/DC in Syntel surya_pathaus Mainframe Jobs 0 Thu Nov 16, 2006 12:06 pm


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