Hi I am using Microsoft SQL Server 2019 (RTM-GDR) (KB4583458) - 15.0.2080.9 (X64) Nov 6 2020 16:50:01 Copyright (C) 2019 Microsoft Corporation Express Edition (64-bit) on Windows Server 2019 Standard 10.0 (Build 17763: ) (Hypervisor)
I have two tables currently with the same columns however one contains new data that will be updated every month lets call that Table 1 and then we have table 2 which has data for the year 2019.
I would like to insert new rows into table 2 and update the records if the amount changed as well.
The columns in the table are: Account ID, Account Description , Amount, Time
How do I achieve this? I know I will need to do an update as well as an insert.