MySQL simple solution, beats 90%, w/o window functions
\nselect\n    product_id,\n    year as first_year,\n    quantity,\n    price\nfrom Sales\nwhere (product_id, year) in (select product_id, min(year) from Sales g
```\nselect\n    product_id,\n    year as first_year,\n    quantity,\n    price\nfrom Sales\nwhere (product_id, year) in (select product_id, min(year) from Sales group by 1)\n```
['MySQL']