👉🏻EASY TO UNDERSTAND SOLUTION || MySQL
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```mysql []
SELECT product_id , year as first_year, quantity, price
FROM Sales 
WHERE (product_id, year) IN (SELECT product_id, min(year) AS year FROM Sales 
GROUP BY product_id)
```
['MySQL']