Faster than 100% of MS SQL Server online submissions
\nSELECT p.product_id,\n       p.product_name\nFROM   product p\n       JOIN sales s\n         ON p.product_id = s.product_id\nGROUP  BY p.product_id,\n        
```\nSELECT p.product_id,\n       p.product_name\nFROM   product p\n       JOIN sales s\n         ON p.product_id = s.product_id\nGROUP  BY p.product_id,\n          p.product_name\nHAVING Min(sale_date) >= \'2019-01-01\'\n       AND Max(sale_date) <= \'2019-03-31\' \n```
[]