Table of Contents

Search

  1. Preface
  2. Introduction to Data Validation Option
  3. New Features and Behavior Changes
  4. Repositories
  5. XML Data Source
  6. Tests for XML Data Sources
  7. Connections
  8. Expressions
  9. Table Pairs
  10. Tests for Table Pairs
  11. Single-Table Constraints
  12. Tests for Single-Table Constraints
  13. Examples of Tests from Spreadsheets
  14. SQL Views
  15. Lookup Views
  16. Join Views
  17. Aggregate Views
  18. Business Intelligence and Reporting Tools Reports
  19. Dashboards
  20. DVOCmd Command Line Program
  21. Troubleshooting
  22. Datatype Reference
  23. Reporting Views
  24. Metadata Import Syntax
  25. Jasper Reports
  26. Glossary

Data Validation Option User Guide

Data Validation Option User Guide

Adding Lookup Views

Adding Lookup Views

You can use a lookup view to validate data in a target table. The lookup view includes fields from the source table and lookup table. You join the tables based on fields in the tables or expressions. Data Validation Option precedes the source table field names with "S_." The lookup view stores the primary key of the lookup table as a foreign key.
  1. Right-click
    Lookup Views
    in the Navigator and select
    Add Lookup View
    .
    The
    Lookup View Editor
    dialog box opens.
  2. Select the source table, lookup table, and their connections.
    Select the lookup field to look up in the lookup table. You can use an expression for join fields in a lookup view.
  3. Enter the description for the lookup view.
  4. Create the source-to-lookup relationship.
    Select
    Expression
    to create an expression for the source or lookup field. If you enter an expression, you must specify the datatype, precision, and scale of the result. The datatype, precision, and scale of the source and lookup fields must be compatible. Use the PowerCenter expression syntax in the source field. Use database-specific SQL in the lookup field. You can validate the PowerCenter expression syntax.
  5. Click
    Delete Join
    to delete the selected source-to-lookup relationship.
  6. Click
    Save
    .