Skip to content

Commit 1a9f163

Browse files
authored
Merge pull request #12 from rozhnev/master
`UNION` and `UNION ALL` operators explanation added
2 parents baa9808 + 4cfe971 commit 1a9f163

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/introduction.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ An INNER JOIN will combine rows from different tables if the *join condition* is
3535
### OUTER JOIN
3636
An outer join will combine rows from different tables even if the join condition is not met. Every row in the *left* table is returned in the result set, and if the join condition is not met, then `NULL` values are used to fill in the columns from the *right* table.
3737

38+
### UNION / UNION ALL
39+
The `UNION` operator is used to combine the result-set of two or more `SELECT` statements. `UNION` removes duplicate rows between the various `SELECT` statements, while `UNION ALL` includes all rows, including duplicates. Each `SELECT` statement within `UNION` must have the same number of columns with similar data types and in the same order.
40+
3841
### UPDATE
3942
`UPDATE` statements allow you to edit rows in a table.
4043

0 commit comments

Comments
 (0)