I have a table that has car dealer information. I am sent transactional files on a bi-weekly basis that are in a variety of Excel formats.
On import into the database table I would like to do the following:
1. If there is a match by VIN# and dealer code that record to another table and update the information in the current table with the data from the Excel file
2. If there is not a match by VIN# and dealer code then just add that record to the table from the Excel file
I am assuming that I should import the Excel file to a temp table and then do my updates/inserts from that temp table.
Any help and/or tips would be greatly appreciated. Thanks.
Swi
On import into the database table I would like to do the following:
1. If there is a match by VIN# and dealer code that record to another table and update the information in the current table with the data from the Excel file
2. If there is not a match by VIN# and dealer code then just add that record to the table from the Excel file
I am assuming that I should import the Excel file to a temp table and then do my updates/inserts from that temp table.
Any help and/or tips would be greatly appreciated. Thanks.
Swi