cancel
Showing results for 
Search instead for 
Did you mean: 

Import data from xlsx, but not duplicates

0 Kudos
787

I have used SQL Central a number of times to import data, but now want to edit an Excel spreadsheet and import data that excludes some existing records. No doubt there will be a unique record (like website address or phone number) but I'm not sure of the best way to import limited records.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

fvestjens
Participant

I would create an "Import" table to upload the given Excel file without limitations.

Then you could:

  • Use SQL statements to import the correct data from this "Import" with the proper excluded data.
  • Remove/update the data in the "Import" table that should be excluded before importing the data from this "Import" table

Afterwards you can remove this "Import" table. You could also leave it in the database for future imports of the same Excel format.

Answers (0)