Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / February 2006

Tip: Looking for answers? Try searching our database.

give me idea for this problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
narayana - 28 Feb 2006 14:37 GMT
I want the criteria like this.

I have 10k of rows in my table and i have to fetch first 200 rows . And
next time when i execute the same query it should fetch next 200 rows
and that should be continued .For that is there any query for my
requirement or I have to write a dynamic sql procedure for this .

In Oracle using rowid we can get the records dynamically where as in
DB2 is the facility is there or not ?

Give some guidance regarding my requirement.
Knut Stolze - 28 Feb 2006 17:15 GMT
> I want the criteria like this.
>
> I have 10k of rows in my table and i have to fetch first 200 rows . And
> next time when i execute the same query it should fetch next 200 rows
> and that should be continued .For that is there any query for my
> requirement or I have to write a dynamic sql procedure for this .

You can use the row_number() OLAP function.  Samples for that are posted
here frequently.

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.