Using INNER JOIN and GROUP BY
SELECT \n    p.product_id,\n    p.product_name\n    FROM Product p INNER JOIN Sales s\n    ON p.product_id = s.product_id\n    GROUP BY product_id\n    HAVING M
SELECT \n    p.product_id,\n    p.product_name\n    FROM Product p INNER JOIN Sales s\n    ON p.product_id = s.product_id\n    GROUP BY product_id\n    HAVING MIN(sale_date) >= \'2019-01-01\' AND MAX(sale_date) <= \'2019-03-31\';
['MySQL']