Table of Contents

Search

  1. Preface
  2. Introduction to Data Validation Option
  3. Repositories
  4. XML Data Source
  5. Tests for XML Data Sources
  6. Connections
  7. Expressions
  8. Table Pairs
  9. Tests for Table Pairs
  10. Single-Table Constraints
  11. Tests for Single-Table Constraints
  12. Examples of Tests from Spreadsheets
  13. SQL Views
  14. Lookup Views
  15. Join Views
  16. Aggregate Views
  17. Business Intelligence and Reporting Tools Reports
  18. Dashboards
  19. DVOCmd Command Line Program
  20. Troubleshooting
  21. Appendix A: Datatype Reference
  22. Appendix B: Reporting Views
  23. Appendix C: Metadata Import Syntax
  24. Appendix D: Jasper Reports
  25. Appendix E: 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
    .

0 COMMENTS

We’d like to hear from you!