×

Database consolidation tool

  • US 9,514,163 B2
  • Filed: 11/17/2005
  • Issued: 12/06/2016
  • Est. Priority Date: 11/17/2005
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implementable method for consolidating a plurality of databases, the method comprising:

  • associating a child target table with a parent target table, wherein each row in the child target table includes a first foreign key pointer to a target primary key in the parent target table, wherein the parent target table provides a first administrative descriptor of each data field in the child target table;

    associating a child source table with a parent source table, wherein each row in the child source table includes a second foreign key pointer to a source primary key in the parent source table, wherein the parent source table provides a second administrative descriptor of each data field in the child source table;

    merging the child target table with the child source table to form a consolidated child table;

    creating a temporary parent source table by copying the parent source table and adding a target row ID column used to track completion states of Foreign Key Realignment (FKR);

    reading, from a foreign key table control file, a script that associates the target primary key and the source primary key with a single reference item found in both the parent target table and the temporary parent source table to produce, in an interim source/target reference table, one logical record per each reference item;

    reading, from a foreign key realignment control file, a script to determine which child columns in the consolidated child table require realignment such that each same reference item has a same primary key;

    reading each defined child column that requires alignment from the foreign key realignment control file;

    creating a realigned consolidated child table and a common set of reference data, based on replacing each instance of the second foreign key pointer with the first foreign key pointer, in the consolidated child table, for all rows retrieved from the interim source/target reference table, wherein the first foreign key pointer is selected based on matching the first administrative descriptor with the second administrative descriptor; and

    pointing each entry in the realigned consolidated child table to the parent target table.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×