A unified data governance solution that helps manage, protect, and discover data across your organization
Hi Anuj Pratap Solanki,
You’re on the right track exploring the Data Quality Rules experience in Purview. At the moment, full SQL-based validations aren’t supported in Health Management. The custom rule framework is limited to the built-in expression logic (column + operator/function + condition), and there isn’t an option to plug in a standalone SQL query for rule evaluation.
For scenarios where SQL logic is required, a common approach is to handle those validations outside Purview. For example, you can run your SQL checks as part of an ETL or data validation pipeline using services like Azure Data Factory or Azure Synapse Analytics, and then capture or surface the results back in Purview (for example via metadata enrichment or lineage context).
Another practical workaround is to encapsulate your SQL logic into views or derived columns at the source, and then apply Purview’s expression-based rules on top of those. This keeps your rule definitions within Purview while still leveraging SQL where needed.
As of now, there’s no publicly available roadmap confirming support for SQL-based rules in this area. If this capability is important for your use case, I’d recommend sharing it through the feedback channel so the product team can track demand: https://aka.ms/purviewideas
You can also refer to the current documentation for supported rule capabilities here: https://dotnet.territoriali.olinfo.it/en-us/purview/data-quality-rules
Hope this helps! Let me know if you’d like to walk through your specific SQL logic , happy to suggest how it can be adapted.