1070-product-sales-analysis-iii
DevGod
Elf Vtuber
SELECT product_id,year as first_year,quantity,priceFROM( SELECT *, rank() over(partition by product_id order by year) as r FROM Sales) as twhere r=1SELECT product_id,year as first_year,quantity,priceFROM( SELECT *, rank() over(partition by product_id order by year) as r FROM Sales) as twhere r=1