UNION_ALL_PULLBACK
Description
The UNION_ALL_PULLBACK
function returns the column corresponding to the index requested from the UNION_ALL table.
UNION_ALL
and UNION_ALL_TABLE
create a virtual table that consists of the vertical concatenation of the input columns/tables. The origin of the different sections of the input tables are recorded. With UNION_ALL_PULLBACK
, a section of a UNION_ALL
column/table can be projected back to its input table. This can be used to compute intermediate results based on multiple tables (without requiring a join in the data model) and continue with the intermediate results on one of the input tables.
SYNTAX
UNION_ALL_PULLBACK ( expression, index )
NULL handling
NULL values are preserved.
Examples
[1] In this example, | ||||||||||||||||||||||||
| ||||||||||||||||||||||||
|
[2] In this example, | ||||||||||||||||||||||||
| ||||||||||||||||||||||||
|
[3] In this example, we execute additional operators on the | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
|