怎么把名字(Name),类型(Type),价格(UnitPrice)相同的统计出来select A.Code,A.Name,A.Standard,C.Name as Type,B.SuppliersName,B.UnitPrice,B.Counts,B.Total,B.DeptID,B.Attribute,B.InputDate  from om.Materials A,
(select F.MaterialsID,G.SuppliersName,F.UnitPrice,F.Counts,F.Counts*F.UnitPrice as Total,F.DeptID,F.Attribute,F.InputDate from
om.AcceptMaterialInfo F,(select SuppliersID,name as SuppliersName from om.Suppliers) G where  F.SuppliersID=G.SuppliersID) B,om.MaterialType C where 
A.MaterialsID=B.MaterialsID and A.MaterialTypeID=C.MaterialTypeID这是我目前的查询类表但是还没有把数量(Counts)和总价(Total)统计出来呢