0

I need the column PrijsExBTW from Factuur to be the total value from all the Prijs from factuuritem where the factuurfactuurnummer from factuuritem is the same as the factuurnummer from factuur

Does anyone have an idea how to do this?

See database model for the references:

database model

1 Answer 1

2

This should be it.

update Factuur f
set PrijsExBTW = (select sum(Prijs) from factuuitem where factuurfactuurnummer = f.factuurnummer)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.