My issue
rfyuhr
My code
SELECT
pc.product_type,
dps.product_id,
dps.units_sold,
ms.month
FROM
division_product_sales dps
JOIN
monthly_sales ms ON dps.month = ms.month
JOIN
product_catalog pc ON dps.product_id = pc.product_id
WHERE
pc.margin_type = 'High_Margin'
AND pc.product_type = dps.product_type;
Learning course: Learn Data Analytics using SQL and Python
Problem Link: CodeChef: Practical coding for everyone