SQL - Set Operations
You have two tables:
Table Products:
product_id INT, product_name VARCHAR, price DECIMAL
Table Sales:
sale_id INT, product_name VARCHAR, amount DECIMAL
You want to combine product_name and price/amount columns from both tables using UNION. Which query is correct?
Table Products:
product_id INT, product_name VARCHAR, price DECIMAL
Table Sales:
sale_id INT, product_name VARCHAR, amount DECIMAL
You want to combine product_name and price/amount columns from both tables using UNION. Which query is correct?
