UNION Syntax | SQL Statements | Teradata Vantage - 17.05 - UNION Operator Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1146-175K
Language
English (United States)
query_expression_1 UNION [ ALL ] query_expression_2

Syntax Elements

query_expression_1
A complete SELECT statement whose results table is to be MINUSed with query_expression_2.
For details, see query_expression Syntax.
ALL
Duplicate rows are to be retained.
query_expression_2
A complete SELECT statement to be MINUSed from query_expression_1.