Complete the code to combine two tables including duplicates using UNION ALL.
SELECT name FROM employees [1] SELECT name FROM contractors;The UNION ALL operator combines results from both queries and includes duplicates.
Complete the code to select all product IDs from two tables including duplicates.
SELECT product_id FROM sales_2023 [1] SELECT product_id FROM sales_2024;UNION ALL returns all rows from both queries including duplicates.
Fix the error in the query to include duplicates from both tables.
SELECT city FROM customers [1] SELECT city FROM suppliers;To include duplicates from both tables, use UNION ALL.
Fill both blanks to combine two queries including duplicates and order the results by name.
SELECT name FROM staff [1] SELECT name FROM interns ORDER BY name [2];
UNION ALL combines all rows including duplicates, and ASC orders the results ascending by name.
Fill all three blanks to select all emails from two tables including duplicates, filter only active users, and order by email descending.
SELECT email FROM users_2022 WHERE status = [1] [2] SELECT email FROM users_2023 WHERE status = [3] ORDER BY email DESC;
Use 'active' to filter active users, and UNION ALL to combine all rows including duplicates.