select style_id,count(inventory)spu from product_tb group by style_id order by spu desc;
这个题有点绕,看着很难,但是读懂题意之后就很简单了