Matching Records Between Two Files
Differencia provides a range of methods for matching individual records between two files to avoid having to sort the two files into the same order.
Using Unique Identifiers
The most reliable way of matching records is to use a common unique identifier for the two files. For example an Order Number, Transaction ID or an SKU. In Differencia a unique identifer can span multiple fields. For example an Order Number, combined with an Item Number.
- Select each file by choosing File > Open twice
- For File 1, in the list of fields check the ID checkbox for each field that comprises the unique identifier
- Repeat step 2. for File 2
- Select each pair of identity fields in turn and choose Comparison > Add Field Mapping
- Select each pair of data fields un turn and choose Comparison > Add Field Mapping
- Choose Comparison > Compare
Using Data Matching
Common, unique identifiers are not always available between two files. In this circumstance, key data fields that should match between the two files can be used to match records:
- Open the two files to be compared, by choosing File > Open twice
- For File 1, in the list of fields, check the ID check box for each key data item
- Repeat step 2. for File 2
- Select each pair of data fields in turn and choose Comparison > Add Field Mapping
- Select each remaining pair of data fields in turn and choose Comparison > Add Field Mapping
- Choose Comparison Compare
Use the minimum number of data fields required to ensure that each record is unique identified.
NB: If multiple records are found with the same values for the identity data fields, the results of the comparison are undefined
Also note that when using data matching, if there is a difference in the data fields being used the match records, the differences will be displayed as missing record differences in each file, rather than specific field differences.
Using Ordered Comparisons
If unique identifiers, or data matching cannot be used, or if the data is already in the same order, Differencai can run an ordered comparison:
- Open the two files to be compared by choosing File > Open twice
- In the list of fields, select each paird of data fields to be compared in turn, and choose Comparison > Add Field Mapping
- Choose Comparison > Compare
Note that if there is a missing record in one of the files, subsequent records are likely to be displayed with differences and each record in one file will not be compared with the corresponding record in the other file.