Simple Query || Sales Analysis III
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```\n# Write your MySQL query statement below\nSELECT DISTINCT A.product_id, B.product_name FROM Sales A LEFT JOIN Product B \nON A.product_id = B.product_id LEFT JOIN \n(SELECT DISTINCT product_id FROM Sales WHERE sale_date not between \'2019-01-01\' and \'2019-03-31\') \nC ON A.product_id = C.product_id\nWHERE C.product_id is null;\n\n```\nPlease upvote!!
['MySQL']