SQL - Precisely Data Integrity Suite

Data Integrity Suite

Product
Spatial_Analytics
Data_Integration
Data_Enrichment
Data_Governance
Precisely_Data_Integrity_Suite
geo_addressing_1
Data_Observability
Data_Quality
dis_core_foundation
Services
Spatial Analytics
Data Integration
Data Enrichment
Data Governance
Geo Addressing
Data Observability
Data Quality
Core Foundation
ft:title
Data Integrity Suite
ft:locale
en-US
PublicationType
pt_product_guide
copyrightfirst
2000
copyrightlast
2026

SQL based quality rules allow you to define the conditions for data quality rules directly through SQL queries, thereby providing more flexibility to accelerate rule creation by using existing SQL logic and patterns to formulate rule expressions. By leveraging custom SQL queries, you can specify precise conditions to assess quality scores for the targeted dataset and field. You can configure the required row filters, and pass conditions by providing the relevant SQL queries, enabling control over data quality evaluations.

To define conditions using SQL queries:
  1. Within the Target Assets section on the create quality rule page, navigate to the SQL tab.
  2. Select the specific field or dataset for which you want to apply the SQL rule.
  3. In the respective tab, click Select Field or Select Dataset.
  4. Use the search bar for a quick search, and apply filters to narrow down results. The default filter value is set to Any.
  5. You can sort the data based on any column parameter.
  6. Select the respective field or dataset to associate with the rule, then click Add Field or Add Dataset.
  7. The selected field or dataset will be added to the target assets section.
    Note: When selecting target assets using SQL, you can select a single dataset or field.
  8. Once the selected field or dataset is added to the Target Assets section, you can proceed to configure the row filters and pass condition or fail condition using SQL queries.
    Note: Row filters and pass conditions are evaluated independently when you define conditions using SQL queries. After successful rule evaluation, the evaluated count displays the total number of records filtered by the row filter conditions, while the passed count displays the total number of records that met the pass conditions defined in the rule.
Tip: The following features work seamlessly with quality rules built using standard methods but are not supported when quality rules are built using SQL:
  • Test with AI generate data feature
  • Show failed records sample feature
  • Evaluate rules step within DQ pipelines
  • Rule creation using Agentic AI and AI assist features
Using SQL queries offers several advantages:
  • Faster rule creation: Write quality rules directly in SQL without navigating through the interface
  • Greater flexibility: Customize your logic to match your specific requirements
  • Access to external assets: Reference assets that aren't cataloged in the Data Integrity Suite.

Example query: SELECT m.MATNR FROM dis.dis.MARM m JOIN dis.dis.MARA a ON a.MATNR=m.MATNR WHERE a.MTART='FERT' AND m.MEINH='TON'

In this example, several tables are assessed with the Join query. These include both cataloged tables available in the Data Integrity Suite's catalog and those tables that are not cataloged. The Join query evaluates all of these tables collectively.