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

Field Expressions

Field Expressions

A field expression represents the value of a field. Create a field expression to change the value, datatype, scale, or precision of a field.
For example, you perform a case-sensitive comparison between the field values of the LAST_NAME fields in two tables. The first table contains values with lowercase letters. The second table contains values with uppercase letters. To match the field values, you convert the uppercase letters in the second table to lowercase. You enter the following field expression for the field of the second table:
lower(LAST_NAME)
.
You can include field expressions in join conditions for table pairs, join views or aggregate views or in source-to-lookup relationships for lookup views.
When you create a field expression, you also specify the datatype, precision, and scale of the expression result. You must ensure that the datatype, precision, and scale of the field expression are valid. For example, you create a join condition between a field and a field expression. The datatype of the field expression must be compatible with the datatype of the other field in the join condition.