【场景】:分组统计
【分类】:分组查询
select 查询结果 [货号;货的数量] from 从哪张表中查询数据[产品情况表] group by 分组条件 [货号] order by 对查询结果排序 [货的数量降序];
select style_id, count(*) as SPU_num from product_tb group by style_id order by SPU_num desc