SELECT DISTINCTROW ProductsId AS pid、(SELECT SUM(QuantityByID)WHERE ProductsId = pid)FROM cartitem
この結果が欲しい
ProductId Quantity
7 7
13 2
14 2
9 1
SELECT DISTINCTROW ProductsId AS pid、(SELECT SUM(QuantityByID)WHERE ProductsId = pid)FROM cartitem
この結果が欲しい
ProductId Quantity
7 7
13 2
14 2
9 1