题解 | 商品价格排名
select product_id, product_name, type, price from ( select product_id, product_name, type, price, rank() over ( partition by type order by price desc ) 排名 from test.product_info ) a where 排名 <= 2 order by price desc, product_id asc limit 3