SELECT SUM(t2.price) FROM Table2 as t2 JOIN Table1 AS t1 ON t1.productid = t2.productid WHERE t1.orderid = ORDERID