The column and alias names of the items in the first SELECT statement of a UNION of statements are definitive.
Within the items in a SELECT statement, you can use previously defined aliases to create expressions, for example:
You can use aliases from the items in the first SELECT statement in a set of UNION statements in the ORDER BY clause of the query.
|
|
Copyright Actuate Corporation 2012 |