Subject | Re: [firebird-support] SQL UNION ALL |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2005-02-24T09:03:03Z |
On 24 Feb 2005 at 9:11, Alberto Pesce wrote:
whole result set can be grouped and sorted.
--
SY, Dimitry Sibiryakov.
>why this union don't work:Because grouping and ordering in parts of union is impossible. Only
>
>SELECT SUM(A), B, C, D
>FROM X,T,Z
>WHERE set_condition_1
>GROUP BY B, C, D, A
>ORDER BY B
whole result set can be grouped and sorted.
--
SY, Dimitry Sibiryakov.