SQLSyntax
Combine Results with UNION
Code example
SELECT email FROM a
UNION
SELECT email FROM b;Stacks results of two queries, removing duplicates.
In SQL, combine results with union: stacks results of two queries, removing duplicates — SELECT email FROM a UNION SELECT email FROM b;
SELECT email FROM a
UNION
SELECT email FROM b;SELECT email FROM a
UNION
SELECT email FROM b;Stacks results of two queries, removing duplicates.
Use SELECT email FROM a UNION SELECT email FROM b;.
Use this pattern: SELECT email FROM a UNION SELECT email FROM b;
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.