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

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

0 COMMENTS

We’d like to hear from you!