题解 | #每个供应商成本最低的产品#
每个供应商成本最低的产品
http://www.nowcoder.com/practice/f0679d06b50049499691e12a435de8d8
SELECT vend_id, MIN(prod_price) cheapest_item FROM Products GROUP BY vend_id ORDER BY cheapest_item;
每个供应商成本最低的产品
http://www.nowcoder.com/practice/f0679d06b50049499691e12a435de8d8
SELECT vend_id, MIN(prod_price) cheapest_item FROM Products GROUP BY vend_id ORDER BY cheapest_item;
相关推荐