Subject | Re: [ib-support] How to ORDER BY a field produced by a singleton select? |
---|---|
Author | Milan Babuskov |
Post date | 2002-12-25T08:08:12Z |
Raymond Kennington wrote:
--
Milan Babuskov
http://fbexport.sourceforge.net
> The following is required for allowing ordering by a looked-up field that isTry: ORDER BY 3
> computed.
>
> SELECT
> A.ID,
> A.NAME,
> (SELECT B.NAME from B WHERE B.ID = A.BID) AS B_Name
> FROM A
> ORDER BY B_Name
>
> It doesn't work, so how should one do this?
--
Milan Babuskov
http://fbexport.sourceforge.net