Subject RE: [firebird-support] how to select last N records, firebird sql
Author Alan McDonald
> -----Original Message-----
> From: firebird-support@yahoogroups.com
> [mailto:firebird-support@yahoogroups.com]On Behalf Of Aydemir Memisoglu
> Sent: Wednesday, 8 November 2006 9:28 PM
> To: firebird-support@yahoogroups.com
> Subject: [firebird-support] how to select last N records, firebird sql
>
>
> Hi all,
> How can I select the last N records from a firebird database?
>

you have to think about the order you want them in - i.e. last of what?
and then use
SELECT FIRST 5 FIELD1 FROM TABLENAME ORDER BY MYPREFERREDINDEX DESC

Alan