select   商品编号,count(商品编号) '数量' INTO AA from   进货表   group   by   商品编号 
SELECT 商品编号,数量 from AA group by 商品编号,数量 order by max(数量) desc