bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL UNION ALL Keyword

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind SQL UNION ALL Keyword?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ City FROM Customers

Union All

The UNION ALL command combines the result set of two or more SELECT statements (allows duplicate values).

The following SQL statement returns the cities (duplicate values also) from both the "Customers" and the "Suppliers" table:

Example

 SELECT City FROM Customers
UNION ALL
SELECT City FROM Suppliers

 ORDER BY City;

Previous

SQL UNION Keyword

Next

SQL UNIQUE Keyword