SET Operators | Data Manipulation Language | Teradata Vantage - Teradata SQL Set Operators - Analytics Database - Teradata Vantage

SQL Data Manipulation Language

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-05
dita:mapPath
pon1628111750298.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
esx1472246586715
lifecycle
latest
Product Category
Teradata Vantage™

Teradata SQL supports the following set operators:

Set Operator Function
INTERSECT Returns result rows that appear in all answer sets generated by the individual SELECT statements.
MINUS /EXCEPT Result is those rows returned by the first SELECT except for those also selected by the second SELECT.

MINUS is the same as EXCEPT.

UNION Combines the results of two or more SELECT statements.

Set operators appear in query expressions. A query expression is a set of queries combined by the set operators INTERSECT, MINUS/EXCEPT, and UNION.