SQL - Set Operations
You have two tables:
You want to create a combined list of all sales including duplicates for analysis. Which query correctly uses UNION ALL and also adds a column
Sales_2023: product_id, quantity_sold
Sales_2024: product_id, quantity_soldYou want to create a combined list of all sales including duplicates for analysis. Which query correctly uses UNION ALL and also adds a column
year to identify the source year?