simple mysql solution
\nSELECT product_id, product_name\nFROM product\nJOIN SALES\nUSING(product_id)\nGROUP BY product_id\nHAVING sum(CASE WHEN sale_date between \'2019-01-01\' and \
```\nSELECT product_id, product_name\nFROM product\nJOIN SALES\nUSING(product_id)\nGROUP BY product_id\nHAVING sum(CASE WHEN sale_date between \'2019-01-01\' and \'2019-03-31\' THEN 1 ELSE 0 end) > 0\nAND sum(CASE WHEN sale_date between \'2019-01-01\' and \'2019-03-31\' THEN 0 else 1 end) = 0\n```
[]