select b.Prodid b.ProdNo,b.ProdName,b.ProdUnit,b.OrderPrice,b.Quantity
from SP_OrderMaster a inner join SP_OrderDetails b on a.ID=b.OrderID where
a.SendID in (select ID from SP_SendMaster where 1=1 and
(convert(varchar(10),SendDate,102) between convert(varchar(10),cast('2010-01-18 ' as datetime),102)
and convert(varchar(10),cast('2010-1-18' as datetime),102))) and 1 = 1
这句语句是对的 但是 我要求b.Prodid 为相同时 b.OrderPrice 的总和 b.Quantity的总和
怎么改
给点数据看看吧。