MySQL Solution
SELECT product_id, year AS first_year, quantity, price\nFROM Sales\nWHERE (product_id, year) IN (\nSELECT product_id, MIN(year) as year\nFROM Sales\nGROUP BY pr
SELECT product_id, year AS first_year, quantity, price\nFROM Sales\nWHERE (product_id, year) IN (\nSELECT product_id, MIN(year) as year\nFROM Sales\nGROUP BY product_id) ;
[]