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

Operator

Operator

The operator defines how to compare the test result for the field with the constraint value. Enter an operator for aggregate, VALUE, and FORMAT tests.
The following table describes the operators available in the
Operator
field:
Operator
Definition
Description
=
Equals
Implies that the test result for the field is the same as the constraint value.
For example, SUM(field) is the same as the constraint value.
<>
Does not equal
Implies that the test result for the field is not the same as the constraint value.
<
Is less than
Implies that the test result for the field is less than the constraint value.
<=
Is less than or equal to
Implies that the test result for the field is less than or equal to the constraint value.
>
Is greater than
Implies that the test result for the field is greater than the constraint value.
>=
Is greater than or equal to
Implies that the test result for the field is greater than or equal to the constraint value.
~
Is approximately the same as
Implies that the test result for the field is approximately the same as the constraint value.
The approximate operator requires a threshold value. It only applies to numeric datatypes
Between
Is between two values entered
Implies that the test result for the field is between the two constants entered as the constraint value.
This operator is generally used for numeric, string, or datetime datatypes.
For example, to check if the EMP_ID is between 1000 and 2000, specify the following information in the single table test editor:
  • Select
    VALUE
    as the function.
  • Select EMP_ID as the field.
  • Select the between operator.
  • Specify
    1000,2000
    as the constraint value.
Not Between
Is not between two values entered
Implies that the test result for the field is not between the two constants entered as the constraint value.
This operator is generally used for numeric, string, or datetime datatypes.
For example, to check if the EMP_ID is not between 1000 and 2000, specify the following information in the single table test editor:
  • Select
    VALUE
    as the function.
  • Select EMP_ID as the field.
  • Select the not between operator.
  • Specify
    1000,2000
    as the constraint value.
In
Is included in a list of values entered
Implies that the test result for the field is in the list of constants entered as the constraint value.
For example, to check if the ITEM_NAME is in ‘Chisel Point Knife’, ‘Medium Titanium Knife’, ‘Safety Knife’, specify the following information in the single table test editor:
  • Select
    VALUE
    as the function.
  • Select ITEM_NAME as the field.
  • Select the in operator.
  • Specify
    ‘Chisel Point Knife’, ‘Medium Titanium Knife’, ‘Safety Knife’
    as the constraint value.
Not In
Is not included in a list of values entered
Implies that the test result for the field is not in the list of constants entered as the constraint value.
For example, to check if the ITEM_NAME is not in ‘Chisel Point Knife’, ‘Medium Titanium Knife’, ‘Safety Knife’, specify the following information in the single table test editor:
  • Select
    VALUE
    as the function.
  • Select ITEM_NAME as the field.
  • Select the not in operator.
  • Specify
    ‘Chisel Point Knife’, ‘Medium Titanium Knife’, ‘Safety Knife’
    as the constraint value.
Data Validation Option compares string fields using an ASCII table.