I'm new at this so sorry for the simple question.
I have 2 tables: orders and orderlines
SELECT SUM(amoumt) FROM Orderregels WHERE ordernumber=ordernumber