Search
⌘K

Leetcode 1070. Product Sales Analysis III

For each product_id, determine the earliest year it was sold and return all sales rows from that first year with columns product_id, first_year, quantity, and price. The task focuses on grouping to find the minimum year per product and selecting all records that match that minimum (including multiple sales in the same first year).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.