Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in DB2 only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
DB2
query to retrieve middle row of a table
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
sushanta123
New Member
Join Date:
Oct 2008
Posts:
3
#1
query to retrieve middle row of a table
Oct 7 '08, 06:03 AM
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
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#2
Oct 7 '08, 06:39 AM
Have a read at the
FETCH FIRST n ROWS clause.
You can also use the ROW_NUMBER() function depending on your version.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment