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

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.

0 COMMENTS

We’d like to hear from you!