KS DB Merge Tools logo KS DB Merge Tools
Documentation
KS DB Merge Tools for PostgreSQL logo for PostgreSQL
 
KS DB Merge Tools for Oracle logo
KS DB Merge Tools for MySQL logo
MssqlMerge logo
KS DB Merge Tools for SQLite logo
AccdbMerge logo
KS DB Merge Tools for Cross-DBMS logo

Custom Data Diff Dialog

This dialog is opened using Custom data diff toolbar action and allows to specify custom column mappings for keys and comparable columns:

for PostgreSQL, custom data diff dialog

This dialog is also opened with Column mapping action from Data diff and Query result diff tab. For Query result diff this dialog is also opened when you specify Customize key & data column mapping option. In both Data diff and Query result diff this dialog is opened without Left table / Right table at the top because it is already defined by application usage context: for Data diff you process some concrete table/view, for Query result diff you have already defined arbitrary query text.

By default, Left table and Right table dropdowns include tables and views from the corresponding database. Populate dropdowns from both DBs (to compare tables/views from the same DB) makes both dropdowns to be populated with objects from both databases, making it possible to compare data from two different objects from the same database.

After table dropdowns, there is a comment for auto-fill rules:

Specify field mappings in the table below. You may auto-fill these mappings with one of the predefined rules:
followed by the dropdown with rules and Apply button. These rules can simplify mapping population. For example, if we have:
- Left table with columns A, B and C
- Right table with columns A, C and D
then these rules will have the following result. The table below also includes Similar to SQL JOIN which can help to understand these rules for those who is familiar with SQL:

Rule Result Similar to SQL JOIN
All fields from both sides
A | A
B |
C | C
  | D
FULL JOIN
Only common fields with the same data type
A | A
C | C
INNER JOIN
All fields from the left side
A | A
B |
C | C
LEFT JOIN
All fields from the right side
A | A
C | C
  | D
RIGHT JOIN
Clear all

At least one mapping item must be specified as a Key, otherwise an appropriate error shown when clicking OK. The dialog includes additional notes regarding mappings table:

- combination of columns having 'Key' mapping type must be unique across table or view
- mapping type 'Key' or 'Compare' can be specified only for columns with the same data type
- add new mapping items to the bottom of the list and then use Top/Up/Down/Bottom buttons to specify the desired columns order

Option Save to diff profile is available if the Home tab has loaded diff profile, both DBs are loaded, and the dialog is opened in one of two ways:

  • using Custom data diff toolbar action and left and right table/view is the same
  • using Column mapping from the Data diff tab

Free Version Limitations

  • The whole dialog is not available

Last updated: 2025-04-08