統計每一個商品每月的銷量???

SELECT  M.B2B_SKU AS SKU,G.MATERIALNAME AS GOODNAME, SUM(CASE MONTH(O.SUBMITTIME) WHEN '1' THEN G.PURCHASQUANTITY ELSE 0 END) AS one,   SUM(CASE MONTH(O.SUBMITTIME) WHEN '2' THEN G.PURCHASQUANTITY ELS
相關文章
相關標籤/搜索