my this query is working but i want to group it by name? : select  ID_Sale,SaleDate,Branch_Name,P_Name,P_UnitPrice,QuantitySold,
  sum (QuantitySold*P_UnitPrice) over (order by ID_Sale asc) AS RunningTotal
  from tblP_Sales
  INNER JOIN tblProduct_With_Img
  ON tblP_Sales.P_ID_Sales = tblProduct_With_Img.P_ID
  INNER JOIN tblBranches
  ON tblP_Sales.BranchID = tblBranches.BranchID