You can use the selected form for your selection and group by
select OrderID, sum(Total)
from (
SELECT
OrderItem.ID
, ProductID
, OrderID
, Quantity
, P.Title
,P.CurrentPrice
, P.ID
, (P.CurrentPrice* OrderItem.Quantity) AS Total
FROM OrderItem
INNER JOIN Product AS P ON OrderItem.ProductID = P.ID
) t
group by OrderId
source
share