Procedure - address_fabric_1 - Latest

Address Fabric™ Data Getting Started Guide

Product type
Data
Portfolio
Enrich
Product family
Enrich Properties > World Addresses
Product
Address Fabric™ Data > Address Fabric™ Data
Version
Latest
ft:locale
en-US
Product name
Address Fabric™
ft:title
Address Fabric™ Data Getting Started Guide
Copyright
2024
First publish date
2016
ft:lastEdition
2025-10-24
ft:lastPublication
2025-10-24T09:36:53.341000

To apply the change file correctly, you must:

  • Retain your last month’s full dataset.
  • Have the change-only file for the current month.
  • Use the PBKEY field as the primary key.
  • Use the CHANGE_TYPE field in the change file:
    • A = Add (New record)
    • D = Delete (Remove record)
    • U = Update (Modify existing record)

Procedure:

  1. Delete Records:
    Identify all the records in the change file with change_type = 'D'. These represent records that should no longer exist in the dataset. Use the UUID to match and delete these from your master table.
    DELETE FROM master_data
    WHERE pbkey IN (
        SELECT pbkey FROM change_data WHERE change_type = 'D'
    );
  2. Insert New Records:
    Fetch records from the change file where change_type is 'A'. These entries are new and should be added to your current dataset.
    INSERT INTO master_data (pbkey, col1, col2, col3, ...)
    SELECT pbkey, col1, col2, col3, ...
    FROM change_data
    WHERE change_type = 'A';
  3. Update Existing Records:
    For records where change_type is 'U', update the corresponding attributes in the master dataset with values from the change file. Update should be done using the PBKEY as the matching key.
    UPDATE master_data AS m
    SET col1 = c.col1,
        col2 = c.col2,
        col3 = c.col3,
        ...
    FROM change_data AS c
    WHERE m.pbkey = c.pbkey
    AND c.change_type = 'U';

Workflow diagram: