I have a table called GoodsInOld which contains 4 columns:
GoodsInOld: Id, CustomerAccount, CustomerName, ItemId
due to a new data structure I've created 2 new tables to hold the data:
GoodsIn and GoodsInProduct.
They have a relationship like below:
GoodsIn: Id, CustomerAccount, CustomerName ...
GoodsInProduct: Id, ItemId, GoodsInId ...
GoodsIn MAY have 1 or many GoodsInProduct
I want to insert the data from GoodsInOld into these 2 tables using a INSERT INTO or SELECT INTO?