UNION is used to combine the result sets of two or more SELECT statements into one result set.
Key points:
- Each SELECT must return the same number of columns
- Columns must have compatible data types
- UNION removes duplicate rows by default
UNION is used to combine the result sets of two or more SELECT statements into one result set.
Previous Article
Next Article