So I am not sure the best way to approach this problem. I want to update a table the following way:
I want to create a duplicate record but put a tag on the old record, for example:
Name: John
Role: Manager
Rate: 22.00
Name: John
Role: Historical______Manager
Rate: 22.00
I was thinking this for the code but I was running into issues:
INSERT INTO Portfolio SELECT * FROM Portfolio
Where [Role] = 'Manager' and [Rate] = 22;
However I am getting errors when trying to run. Plus I am not sure how to append on the Historical______ prefix.
I want to create a duplicate record but put a tag on the old record, for example:
Name: John
Role: Manager
Rate: 22.00
Name: John
Role: Historical______Manager
Rate: 22.00
I was thinking this for the code but I was running into issues:
INSERT INTO Portfolio SELECT * FROM Portfolio
Where [Role] = 'Manager' and [Rate] = 22;
However I am getting errors when trying to run. Plus I am not sure how to append on the Historical______ prefix.