HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide

[Contents][Glossary][Index][Back][Next]

4.2.4 Data linkage from n tables to one table

This section explains the pattern for data linkage from n tables to one table.

You use a merge table to combine multiple source tables into one at the target for import into a single table. You can create a merge table at the target system, combine multiple source tables into one table, and then import it into a single table. Changes made by such commands as INSERT, DELETE, and PURGE TABLE are converted according to the merge table rules or the load statements specified in the import table definition.

The following figure shows an example of combining multiple source tables into one table at the target, and then importing that table into a single table using a merge table.

Figure 4-11 Example of combining multiple source tables into one at the target, and then importing it into a single table using a merge table

[Figure]

Explanation

You must specify in the import table definitions all the field names that are specified in the update information field definitions. When you create a merge table, specify sqlconvopt1 or sqlconvopt2 in front of the table name in the to clause in the import table definition.