Union Flashcards
What does the UNION set operator do?
It appends tables together.
Last Revised: 4/2/21, 5.3
When using the UNION set operator, where does it go?
Between the two SELECT statements you would like to append.
Last Revised: 4/2/21, 5.6
What are the three requirements of the columns in the SELECT clauses in order for the UNION set operator to work?
- There must be the same number of columns
- The columns must be in the same order
- The columns must have similar data types, respectively
(Last Revised: 4/2/21, 5.7)
TRUE or FALSE: When using the UNION set operator, the resulting table uses the column names supplied in the second SELECT clause.
False
The resulting table uses the column names supplied in the first SELECT clause.
(Last Revised: 4/2/21, 5.8)
The UNION set operator returns only distinct values by default. How would you allow duplicate values?
By using UNION ALL
Last Revised: 4/2/21, 5.8