Table of Contents

Search

  1. Preface
  2. Introduction to Test Data Management
  3. Test Data Manager
  4. Projects
  5. Policies
  6. Data Discovery
  7. Creating a Data Subset
  8. Performing a Data Masking Operation
  9. Data Masking Techniques and Parameters
  10. Data Generation
  11. Data Generation Techniques and Parameters
  12. Working with Test Data Warehouse
  13. Analyzing Test Data with Data Coverage
  14. Plans and Workflows
  15. Monitor
  16. Reports
  17. ilmcmd
  18. tdwcmd
  19. tdwquery
  20. Appendix A: Data Type Reference
  21. Appendix B: Data Type Reference for Test Data Warehouse
  22. Appendix C: Data Type Reference for Hadoop
  23. Appendix D: Glossary

User Guide

User Guide

Database Functions in Entity Criteria

Database Functions in Entity Criteria

You can use database functions in entity filter criteria. To ensure that TDM processes the filter query correctly, you must use the IN operator and a Select clause.
For example, consider filter criteria that uses the add_months database function. Workflow generation fails if the plan contains the query entered directly, as TDM does not recognize this as a database function. TDM is unable to pass the criteria with the database function as is to the database.
To use the filter criteria with a database function, use the IN operator and enter the query with a Select clause.
To add the required filter criteria, in the
Edit Criteria
dialog box, select the operator IN from the list of operators. Enter the database function as a Select clause in the
Value
field.
select HIREDATE from <table> where HIREDATE > add_months(current_date, -3)
The Entity Criteria tab in the Edit Entity dialog box contains fields to select the operator and enter the value for the criteria. The IN operator is selected and the select clause is entered in the value field.
TDM processes the filter criteria correctly and passes the query to the database. The workflow runs successfully with this entity criteria.

0 COMMENTS

We’d like to hear from you!