Table of Contents

Search

  1. Preface
  2. XML Concepts
  3. Using XML with PowerCenter
  4. Working with XML Sources
  5. Using the XML Editor
  6. Working with XML Targets
  7. XML Source Qualifier Transformation
  8. Midstream XML Transformations
  9. XML Datatype Reference
  10. XPath Query Functions Reference

XML Guide

XML Guide

Generating All Hierarchy Foreign Keys

Generating All Hierarchy Foreign Keys

By default, the Integration Service generates values for one foreign key in a view. If a view has more than one foreign key, the other foreign keys have null values. You can choose to generate key values for all foreign keys in a view. Select the All Hierarchy Foreign Keys option.
The following figure shows the Pedigree_View with two foreign keys, FK_Species and FK_Animal:
If you select the All Hierarchy Foreign Keys option for the Pedigree_View, the Integration Service generates key values for FK_Species and FK_Animal.
The following figure shows sample data for the Pedigree_View with the All Hierarchy Foreign Keys option:
The sample data shows values of 1 and 2 in the FK_Animal column.
If you clear the All Hierarchy Foreign Keys option, the Integration Service generates key values for one foreign key column. In this example, the Integration Service generates values for FK_Species because Species_View is the closest parent of Pedigree_View in the XML hierarchy. The FK_Animal foreign key has null values.
The following figure shows sample data for the Pedigree_View if you clear the All Hierarchy Foreign Key option:
The sample data now shows null values in the FK_Animal column.
The Integration Service generates foreign keys to the closest parent.

0 COMMENTS

We’d like to hear from you!