UNION
operation
The SQL operation UNION
corresponds to the mathematical operation .
The UNION
operation automatically eliminates duplicates.
To retain duplicates, one must use UNION ALL
operation instead.
INTERSECT
operation
The SQL operation INTERSECT
corresponds to the mathematical operation .
The INTERSECT
operation automatically eliminates duplicates.
To retain duplicates, one must use INTERSECT ALL
operation instead.
EXCEPT
operation
The SQL operation EXCEPT
corresponds to the mathematical operation .
The EXCEPT
operation outputs all tuples from R1
that do not occur in R2
.
The EXCEPT
operation automatically eliminates duplicates.
To retain duplicates, one must use EXCEPT ALL
operation instead.