[LeetCode] - 1070.Product Sales Analysis 3
문제 Write a solution to select the product id, year, quantity, and pricefor the first year of every product sold. Return the resulting table in any order. The result format is in the following example. "판매되는 모든 제품의 첫 해 제품 id, 연도, 수량, 가격을 선택할 수 있는 솔루션을 작성하시오." 풀이 과정 SELECT product_id, year AS first_year, quantity, price FROM sales WHERE (product_id,year) IN (SELECT product_id,min(year) AS year FRO..
2024. 4. 15.