DB Solo
Back to Index

Result Set Comparison

The result set comparison feature allows one to quickly compare data rows from two different result sets. To run comparisons from the command line or to have more control over the comparison process one should use the Data Compare Tool instead. To compare two result sets, start by clicking on the 'Compare Result Sets' button above one of the result sets in the Query Editor. Alternatively, you can choose Query/Compare Result Sets from the main menu (Ctrl+Alt+C). This will bring up the 'Select Results Sets' dialog that allows you to select the result sets to compare.

Select Result Sets

Selecting Result Sets

The 'Select Result Sets' dialog allows you to select the result sets to be compared as well as save current result sets for later comparison. The selected result sets can either be previously saved result sets or active result sets from open Query Editor tabs. The dialog will show all result sets from all open Query Editors, not just the currently active Query Editor. The active result sets appear under the 'Current Result Sets' node in the tree whereas saved result sets appear under the 'Saved Result Sets' node. To save a result set, first select it under the 'Current Result Sets', then click on the 'Save' button in the detail panel below the corresponding tree control.

Select Result Sets

Selecting Primary Key Column(s)

The 'Columns' tab allows you to pick the primary key columns(s) for the comparison. At least one column needs to be selected, and the selected columns must uniquely identify every row in both result sets. After selecting the primary key column(s), click on the 'Results' tab to start the comparison process.

Select Result Sets

Viewing Results

The results panel has four child panels; Different, Missing, Extra and Matching. The 'Different' panel shows all the rows that exist on both sides but some of the column values differ. The 'Missing' panel shows rows that exist on the destination side but do not exist in the source result set. By the same token, the 'Extra' panel shows rows that are present in the source result set but do not appear in the destination result set. Finally the 'Matching' panel contains rows that are present on both sides and whose column values match.

Select Result Sets

Info Page

The 'Info' tab shows information regarding the source and destination result sets, including when the query was executed and how long it took to execute and fetch the results. The 'Query' tab within the 'Info' panel shows the actual query that was executed. This information is showed for both current and saved result sets.

Select Result Sets

Back to Index DB Solo