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

Rules and Guidelines for SQL Views

Rules and Guidelines for SQL Views

Certain rules and guidelines apply when you create an SQL view.
Consider the following rules and guidelines when you create an SQL view:
  • All tables in the SQL view must exist in the same database.
  • The SQL statement must use valid SQL syntax based on the database of the tables included in the SQL view. Data Validation Option does not validate the SQL statement syntax.
  • The number and order of the columns must match in the column definitions and the SQL statement of the SQL view.
  • The scale must be zero for datetime, integer, and string datatypes.
  • If you create a column in the SQL view, verify that the datatype, precision, and scale match the PowerCenter datatype, precision, and scale shown in the
    Column Definitions
    area.
  • You can add database functions, any join type, subqueries, and stored procedures in the SQL statement of an SQL view.
  • If the SQL view calls a stored procedure, the connection assigned to SQL view must have Execute permission on the stored procedure.
  • If you include the SQL view in a table pair, you can create a WHERE clause for the table pair based on a field in the SQL view.
  • When you use SQL view as the data source, you can edit the connection in the table pairs, single tables, aggregate views, and join views.