Complete the code to combine two tables and remove duplicates.
SELECT column_name FROM table1 [1] SELECT column_name FROM table2;The UNION operation combines results from two queries and removes duplicates.
Complete the code to find common rows between two tables.
SELECT column_name FROM table1 [1] SELECT column_name FROM table2;The INTERSECT operation returns only rows that appear in both queries.
Fix the error in the code to find rows in table1 but not in table2.
SELECT column_name FROM table1 [1] SELECT column_name FROM table2;The EXCEPT operation returns rows from the first query that are not in the second.
Complete the code to combine two tables including duplicates.
SELECT column_name FROM table1 [1] SELECT column_name FROM table2 ;;The UNION ALL operation combines results from two queries including duplicates.
Fill all three blanks to find rows in table1 not in table2 and order results.
SELECT column_name FROM table1 [1] SELECT column_name FROM table2 [2] ORDER BY [3];
The EXCEPT operation returns rows from the first query that are not in the second. ORDER BY column_name sorts the results.