I have one table that contains many rows, i was hoping there is a way to update a Total cost column in this table calculated from the sum of another Table.
is it possible to do something along the lines of this:
UPDATE [PO] set TotalCost=(Select sum(Cost) from [PO-Lines] where PO=Update.PO)
this is so i don't have to create a loop