Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old October 7th, 2008, 07:03 AM
Newbie
 
Join Date: Oct 2008
Age: 23
Posts: 3
Default query to retrieve middle row of a table

I want to retrieve the middle row of a table..but i am not sure of any query in DB2 and is there any function to retreive the row number..if yes plz explain with an example.


Thanx in advance
Sushanta
Reply
  #2  
Old October 7th, 2008, 07:39 AM
Administrator
 
Join Date: Sep 2006
Posts: 11,312
Default

Have a read at the
FETCH FIRST n ROWS clause.
You can also use the ROW_NUMBER() function depending on your version.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles