Complete the code to combine results from two tables without duplicates.
SELECT name FROM employees [1] SELECT name FROM managers;The UNION keyword combines results from two queries and removes duplicates.
Complete the code to combine two queries including duplicates.
SELECT city FROM customers [1] SELECT city FROM suppliers;UNION ALL combines results including duplicates.
Fix the error in combining two queries selecting different columns.
SELECT id, name FROM products [1] SELECT product_id FROM sales;Both queries must select the same number of columns with compatible types for UNION to work.
Fill both blanks to combine two queries and order the results by name.
SELECT name FROM staff [1] SELECT name FROM contractors [2] name ASC;
Use UNION to combine and ORDER BY to sort the final result.
Fill all three blanks to combine two queries selecting product names and prices, including duplicates, and order by price descending.
SELECT [1], [2] FROM store1 [3] SELECT product_name, price FROM store2 ORDER BY price DESC;
Select the same columns product_name and price from both tables, use UNION ALL to include duplicates, and order by price descending.