It is important to understand that Rons Data Compare is built on the same core technology as Rons Data Edit. As a result, the techniques used by Rons Data Edit to identify duplicate rows and perform similar comparisons can be reused in Rons Data Compare to match and compare rows across two different documents.
Rons Data Edit can create in-place row indexes for these operations, and those same indexes, with minor modifications, are used by the key and full-row matching functions in Rons Data Compare. This approach provides a solution that is flexible, fast, and memory-efficient.
How Compare Modes Match Rows
The compare mode chooses how rows are paired. Column mappings still decide which fields take part.
Match sequential
Match sequential is the default. It walks both files from top to bottom in their current order and compares all mapped columns.
When the current rows match, they are paired and the compare moves on. When they do not, it looks ahead in each file for an exact match on the mapped columns. That lets an inserted or deleted row be recorded on its own, without forcing every later row out of alignment. If no exact match is found within that look-ahead, the two current rows are paired as a changed row, so differences in individual cells can still be shown.
Because matching follows file order, sort both files the same way before you compare if the rows are not already in a comparable sequence.
Keyed Compare Modes
When a Match key mode is selected and one or more key columns are defined, a row-matching index is built for both tables using those key columns. The remaining mapped columns are then used for cell-level comparison.
Unless all mapped columns are included in the key, this is generally the fastest and most flexible way to compare two documents. It also allows Rons Data Compare to identify cell-level differences in mapped columns that are not part of the key.
The three key modes differ in which rows are kept:
- Match key - Left and right includes every row from both files.
- Match key - Left only includes every row from the left and only the matching rows from the right.
- Match key - Lookup looks up a right-hand row for each left-hand row.
If a key mode is selected and no key columns have been defined, the compare falls back to Match sequential.
Match full row
When Match full row is selected, a row-matching index is built for both tables using all mapped columns. Order does not matter: a row is found by its full mapped content.
Because every mapped column is part of the match, a row either matches completely or it does not match at all. The comparison can identify matching rows and extra rows, but it cannot report which individual cells differ. Unmatched rows are shown as present on one side only.
What About Unmapped Columns
Both key-based and full-row matching operate only on mapped columns. Match sequential uses the same mapped columns when it decides whether two rows are an exact match.
Unmapped columns are still included on both sides of the comparison and remain available for update operations. However, because they are not part of the column mapping, they are treated as additional columns and are not used when determining row matches.
Unmapped columns therefore have no effect on row matching. They remain available in the comparison view and can still be included in update operations after matching has been completed.
Related Information
Rons Data Compare