T
tungstentim
I do a yearly maintenance on several databases. I import new data and compare
to the old data. I manually check a box to select whether to import new data
or leave old data alone. The concept in my head seems simple but I can't come
up with a way to do this progromatically.
Here is the issue. I want to "append" new records from "NewDataTable" to
"OriginalDataTable" only if the "ParcelId" field in the "NewDataTable is not
the same as any "ParcelId" field in the OriginalDataTable". This process is
easy enough. But here is where I get fuzzy. I want to update the records in
the "OriginalDataTable" with records from "NewDataTable" if the info in
"ParcelId" field in both tables is equal but "OwnerName" field is different.
I.E. New Owner info, but same Parcel Info. If "OwnerName" and "ParcelId" is
same in both tables there is no need to update th record. Thanks in advance.
to the old data. I manually check a box to select whether to import new data
or leave old data alone. The concept in my head seems simple but I can't come
up with a way to do this progromatically.
Here is the issue. I want to "append" new records from "NewDataTable" to
"OriginalDataTable" only if the "ParcelId" field in the "NewDataTable is not
the same as any "ParcelId" field in the OriginalDataTable". This process is
easy enough. But here is where I get fuzzy. I want to update the records in
the "OriginalDataTable" with records from "NewDataTable" if the info in
"ParcelId" field in both tables is equal but "OwnerName" field is different.
I.E. New Owner info, but same Parcel Info. If "OwnerName" and "ParcelId" is
same in both tables there is no need to update th record. Thanks in advance.