MS SQL + 99.01% faster + Group by + Having
\nselect s.product_id, p.product_name\nfrom sales s, product p\nwhere s.product_id = p.product_id\ngroup by s.product_id, p.product_name\nhaving min(s.sale_date
```\nselect s.product_id, p.product_name\nfrom sales s, product p\nwhere s.product_id = p.product_id\ngroup by s.product_id, p.product_name\nhaving min(s.sale_date) >= \'2019-01-01\' \n    and max(s.sale_date) <= \'2019-03-31\'\n```
[]