Subject Re: Order by (Date minus Date)
Author ai_no_kareshi
That solved my problem. I thought it had to have something to do with
casting, but I just couldn't get it to work. Thank you so much!

--- In firebird-support@yahoogroups.com, Svein Erling Tysvær
<svein.erling.tysvaer@...> wrote:
>
> SELECT P.PeriodName, cast('2008-01-21' as Date) - P.StartDate AS
PeriodLength
> FROM Periods P
> ORDER BY 2 DESC