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

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.