Fast and simple query by MySQL!!!
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nselect s.product_id, p.product_name from Product p\njoin Sales s on p.product_id = s.product_id\ngroup by product_id\nhaving max(s.sale_date) <= \'2019-03-31\' and min(s.sale_date) >= \'2019-01-01\'\n\n\n\n\n```
['MySQL']