I have some transactional type data in a table. I am trying to update columns in that table with calculated values based on the data in the same table, but evidently I am unable to write a lookup value to the same table referenced in the subquery I am using to generate the value to be written back into the table.
I believe I need to set up a different table and write the calculated values into the new table, however I need to figure out how best to replicate the primary key from the first table to the new table. Can anyone point me in the right direction of how to best go about this?
I believe I need to set up a different table and write the calculated values into the new table, however I need to figure out how best to replicate the primary key from the first table to the new table. Can anyone point me in the right direction of how to best go about this?