Subject Re: [firebird-support] The last records of a result set
Author Ann W. Harrison
dr_bentonquest wrote:
>
> I am using Firebrid 1.5.2 and need to get the last 10 records of a
> given result set. I'm sure a stored procedure is the answer, but would
> appreciate some ideas on actual code.
>

Sorry, I seem to have my pedantic hat on today. Result sets aren't
ordered unless you specify an ordering. To get the "last" ten, reverse
the ordering and request the first 10. If you don't care about the
order, take 10 at random.


Regards,


Ann