Superb Logic with Min and Max
\n# Logic min and max\n\nselect product_id,product_name\nfrom product natural join sales\ngroup by product_id\nhaving min(sale_date)>=\'2019-01-01\' and max(sal
\n# Logic min and max\n```\nselect product_id,product_name\nfrom product natural join sales\ngroup by product_id\nhaving min(sale_date)>=\'2019-01-01\' and max(sale_date)<=\'2019-03-31\'\n\n```\n# please upvote me it would encourage me alot\n
['MySQL']