Subject | Re: [firebird-support] UNION - ORDER BY |
---|---|
Author | Daniel Rail |
Post date | 2005-12-21T10:10:40Z |
Hi,
At December 21, 2005, 6:03 AM, Andre Dostal wrote:
alias. Field aliases are not supported outside of the result set. It
might be in a future version(don't ask which one). But, you can
specify the column position in the GROUP BY and ORDER BY clauses.
Try the following ORDER BY clause:
ORDER BY 2, NAME
--
Best regards,
Daniel Rail
Senior Software Developer
ACCRA Consultants Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)
At December 21, 2005, 6:03 AM, Andre Dostal wrote:
> The statement doesn't work IBConsole, neither within a Delphi programmPARENT_ID doesn't exist in the first query other than as a field
> Is there a wrong syntax?
alias. Field aliases are not supported outside of the result set. It
might be in a future version(don't ask which one). But, you can
specify the column position in the GROUP BY and ORDER BY clauses.
Try the following ORDER BY clause:
ORDER BY 2, NAME
--
Best regards,
Daniel Rail
Senior Software Developer
ACCRA Consultants Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)