Learn
Congratulations! We just learned about Set Operations in SQL. What can we generalize so far?
- The
UNION
clause allows us to utilize information from multiple tables in our queries. - The
UNION ALL
clause allows us to utilize information from multiple tables in our queries, including duplicate values. INTERSECT
is used to combine twoSELECT
statements, but returns rows only from the firstSELECT
statement that are identical to a row in the secondSELECT
statement.EXCEPT
returns distinct rows from the firstSELECT
statement that aren’t output by the secondSELECT
statement
Sign up to start coding
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.