I have two tables which looks like this:
Table1(ID, name, street, houseNo, DeliveryID) and Table2(ID, name street houseNo, DeliveryID)
I want to create a procedure that checks the contents of Table1(name, street, houseNo) and Table2(name, street houseNo). And if the content is equal to each other it should insert Table1.DeliveryID into Table2.DelvieryID.
how would i do that ?