D
databasedave
Guest
I am attempting to create a function that when called will look at a table (table 1) that is imported daily. I need to take those records and insert them into a permanent table (table 2). After this occurs I need to update that table 2 with numbers that are held in a seperate table (table 3) and once assigned (from table 3) are marked as having been assigned (so that they are not assigned again). The number of records that are being imported (table 1) will vary. My question is how can I go about assigning these numbers to table 2 after the records have been inserted from table 1? What code do I need to include in my function to carry this out? Thank you in advance for any help you can give.