IT lexicon › Database › UNION

UNION

Database På svenska → Updated: 2026-11-10

A SQL operation that combines results from two or more SELECT statements.

UNION merges results from separate queries and removes duplicates (UNION ALL keeps them). It's useful when data lives in different tables or when you want to answer multiple questions at once. UNION was implemented early in relational databases and is now universal standard.

← Back to the lexicon