Subject | Re: [firebird-support] Retrieve the older date |
---|---|
Author | Ann W. Harrison |
Post date | 2005-09-27T17:54:09Z |
Carlos Arguilar wrote:
select first 1 <date field> from <table>
where <condition>
order by <date field> desc
Regards,
Ann
>Something like
> I need doing a 'select' in a SP. This statment must return the older date of
> a date field. If the record with the older date isn't suitable, so I need
> the second older date and so on until end of the table, if necessary.
select first 1 <date field> from <table>
where <condition>
order by <date field> desc
Regards,
Ann