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

Sample Queries for Custom Reports

Sample Queries for Custom Reports

You can run SQL queries against the reporting views to generate custom reports.

Test Run

You can run the following SQL query to get test run information for a specific test:
SELECT DISTINCT tr.*, tp.DESCRIPTION FROM TABLE_PAIR tp, TEST_RUN tr WHERE tr.TABLE_PAIR_OBJ_ID = tp.OBJ_ID and tp.DESCRIPTION = <unique table pair or single-table constraint description>

Latest Test Run

You can run the following SQL query to get the latest test run information:
SELECT DISTINCT tr.*, tp.DESCRIPTION FROM TEST_RUN tr, TABLE_PAIR tp WHERE tr.IS_LATEST_RUN = 1 and tr.TABLE_PAIR_OBJ_ID = tp.OBJ_ID and tp.DESCRIPTION = <unique table pair or single-table constraint description>

Bad Records for All Table Pairs and Single-Table Constraints

If you configured Data Validation Option to store bad records in the DVO schema, you can run the following SQL query to get the bad records for all table pairs and single-table constraints:
SELECT rsv.*,rsbd.* FROM RESULTS_SUMMARY_VIEW rsv LEFT OUTER JOIN RS_BAD_RECORDS_VIEW rsbd ON rsv.TR_ID = rsbd.TR_ID and rsv.TC_INDEX = rsbd.TC_INDEX

Bad Records for Latest Test Runs for a Table Pair or Single-Table Constraint

If you configured Data Validation Option to store bad records in the DVO schema, you can run the following SQL query to get the bad records for the latest test runs for a table pair or single-table constraint:
SELECT rsv.*,rsbd.* FROM RESULTS_SUMMARY_VIEW rsv LEFT OUTER JOIN RS_BAD_RECORDS_VIEW rsbd ON rsv.TR_ID = rsbd.TR_ID and rsv.TC_INDEX = rsbd.TC_INDEX where rsv.TP_DESCRIPTION = <unique table pair or single-table constraint description> and rsv.tr_is_latest=1