SQL - Set Operations
You have two tables:
Write a query to list all unique customer_ids from both years along with the sum of their total_amounts.
Orders2022: order_id, customer_id, total_amount
1, 101, 250
2, 102, 300Orders2023: order_id, customer_id, total_amount
2, 102, 350
3, 103, 400Write a query to list all unique customer_ids from both years along with the sum of their total_amounts.
