Super Each Approach
Intuition\n\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Tim
# Intuition\n![upvote.png](https://assets.leetcode.com/users/images/852be654-3be3-413b-8df2-1b80ac151f9c_1692990208.7940085.png)\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\n/* Write your T-SQL query statement below */\n\nSELECT S.product_id, S.year as first_year, S.quantity, S.price\nFROM Sales S\nWHERE S.year IN (SELECT MIN(year) FROM Sales S1 WHERE S.product_id = S1.product_id)\n```
['MS SQL Server']