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

Constraint Value

Constraint Value

The constraint value represents a constant value to which you want to compare the field values. For example, you might want to verify that all values in the ORDER_DATE field fall between January 1, 2010 and December 31, 2010. Or, you might want to verify that the minimum ORDER_ID number is greater than 1000.
The constraint value must be a string, numeric, or datetime constant. The datatype of the constraint value depends on the test.
The following table lists the constraint value datatype allowed for each test:
Test
Datatype
COUNT, COUNT_DISTINCT, COUNT_ROWS
Integer
MIN, MAX, SUM, VALUE
Same as the
Field
datatype.
FORMAT
String
AVG
Double
UNIQUE, NOT_NULL, NOT_BLANK
These tests do not use a constraint value.
Enter a constraint value in the
Constraint Value
field. Enter a constant or list of constants separated by commas.
The number of constants you enter as the constraint value depends on the operator you use:
Arithmetic operator such as =, <>, or ~
Enter a single constant.
Between or Not Between operator
Enter two constants separated by a comma.
In or Not In operator
Enter multiple constants separated by commas.
Enclose each string value, datetime value, or format pattern within single quotes. Datetime values must match the PowerCenter standard datetime format of MM/DD/YYYY HH24:MI:SS.