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

Solve this SQL QUERY


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

New User


Joined: 04 Mar 2005
Posts: 8
Location: asd

PostPosted: Fri Mar 25, 2005 5:14 pm
Reply with quote

HI CAN ANYONE HELP ME IN FORMULATING A QUERY WHERE BY ONE DISPLAY SELECTIVE ROWS FROM A SELECT QYERY..
FOR EXAMPLES GIVING A QUERY..
SELECT * FROM TABLE_NAME;
WHEREIN I WANT TO DISPLAY FROM 500TH ROW TO 525TH ROW ONLY.
WE DO HAVE FETCH FIRST N ROWS ONLY CLAUSE...
BUT WHAT FETCHING IN BETWEEN?[/b]
Back to top
View user's profile Send private message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Fri Mar 25, 2005 6:17 pm
Reply with quote

Hi,

If you have Primary key value then use it. If you dont have use ROWNUM. But I wont suggest it. You should have a Key for Table to access.

Still you need any thing mail me the real situation where its really needed.

Thanks,
Reddy.
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
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top