Subject | Re: [firebird-support] Order by (Date minus Date) |
---|---|
Author | Magnus Titho |
Post date | 2008-01-21T07:33:34Z |
ai_no_kareshi wrote:
Which version do you use?
--
Magnus
> Greetings, all. Suppose I have a table of time periods which I want toWorks for me.
> order by their length. I am trying to do something like the following,
> which I know does not work:
>
> SELECT P.PeriodName, (P.EndDate - P.StartDate) AS PeriodLength
> FROM Periods P
> ORDER BY 2 DESC
>
Which version do you use?
--
Magnus