题解 | #列出供应商及其可供产品的数量#
列出供应商及其可供产品的数量
http://www.nowcoder.com/practice/17f22851cf204019b51a36761a3afc79
select vend_id, count(prod_id) prod_id
from Vendors left join Products using (vend_id)
group by vend_id
order by vend_id asc
列出供应商及其可供产品的数量
http://www.nowcoder.com/practice/17f22851cf204019b51a36761a3afc79
select vend_id, count(prod_id) prod_id
from Vendors left join Products using (vend_id)
group by vend_id
order by vend_id asc
相关推荐