Use this tag only for questions about UNION, a keyword of the SQL language for combining the results of multiple SQL queries. Use [union-all] for the UNION-ALL keyword. Use the tag [unions] for unions in C, C++, and similar languages.
UNION
is a keyword of SQL for combining the results of multiple SQL queries. The results are combined and duplicate rows are eliminated (similar to DISTINCT
). If UNION ALL
is used, the rows are combined but duplicates are not removed.
Use the tag unions for unions in C, C++, and similar languages. Use union-all for the UNION-ALL
keyword.