Table of Contents

Merging Data

Merging data is a powerful feature, but it risks overwriting your data inappropriately if used incorrectly. It is therefore strongly recommended that you read and understand this section before using the feature. Also, it is recommended that you back up your data (e.g. export it to file so that it can be re-imported) if the data cannot be easily recreated.

When you select a field for merging, you are specifying that the field in the file and the field in the database table contain a common ID, and the data for each row in the file will be used to update the corresponding row in the database (rather than adding it as a new row). Any fields that are specified as new fields will be added as usual, but any mapped fields will have their values in the database overwritten with any value found in the file.


Example: You have a SD file containing structures and an ID field, and a data file (e.g. a CSV file exported from Excel) containing additional data for those structures, and one of the fields in this file contains the ID of the structure. To merge this sort of data you would use the following procedure:

  1. Import the SD file into a new JChem table as usual.
  2. Start to import the CSV file into the same table (see Importing data for details).
  3. When you get to Step 3, Field Details, map the two fields that contain the common ID by removing the field from the list of new fields using the Remove button (by default all file fields are added as new fields). The field will become enabled in the list of file fields and can be added back to the list of database fields.
  4. Specify that this field is to be used as a merge field by selecting the field in the list of file fields and the field in the database that it will be merged with from the right hand list. With both fields selected click the 'Merge' button. Merge fields are signified by the double-headed arrow symbol.
  5. Add all other fields that you require from the CSV file as new fields. If you specify any fields as mapped fields then the data in the file will overwrite the values already in the database.
  6. Continue the import as usual.

Important points to remember about merging:


Current limitations on merging data:



Copyright © 1998-2008 ChemAxon Ltd. All rights reserved.