Union transformation
On this page
Editor reference — Union in the Transformation editor
Choose Union to combine rows from several source branches into one SQL view. The branch with the lowest sequence number establishes the output column set.
| Editor area | What to configure |
|---|---|
| Sources & joins | Add and order branches. Use each branch's Filter Statement to restrict its rows. Regular join controls are hidden. |
| Union all | Inserts UNION ALL before that branch when checked, or UNION when cleared. The first branch has no separator. |
| Distinct | Adds SELECT DISTINCT to the individual branch. This is separate from deduplication by UNION. |
| Table SeqNr and Columns | Switch branches and map each output. Save aligns later branches to the first branch's column names and order. Fill columns can help with later branches. |
VIEW is read-only. Check output types and duplicate behavior in the generated SQL. When appending two like-shaped datasets, verify the expected row count with the selected UNION or UNION ALL semantics.