If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Problems with TOP function....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-13-03, 09:41
MIGVIPER MIGVIPER is offline
Registered User
 
Join Date: Mar 2003
Location: Portugal
Posts: 1
Red face Problems with TOP function....

Hello,
I have a little problem here....
I want to select the last 5 rows of a table to publish in a intranet, and since the informix version that I am using doesn't support the TOP function (I don't know if any version of informix does it), I would like to ask if anyone as some kind of solution, cuz I am running out of ideas...
By the way, the function's 'Last' and 'First' are not supported ether.

Anyone with similar problem outhere can help??

Thank's

Last edited by MIGVIPER; 03-13-03 at 09:44.
Reply With Quote
  #2 (permalink)  
Old 03-20-03, 06:49
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
You could write your own stored procedure that selects only the first or the last x rows.
__________________
rws
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On