What problem does it solve?
DBSQL users often struggle to implement complex logic, procedural workflows, and AI-assisted analytics within SQL without a structured guide.
The Databricks SQL feature set provides scripting, stored procedures, recursive queries, materialized views, and federated data access to streamline lakehouse work.
Core Features & Use Cases
- Procedural SQL blocks (BEGIN...END), variables, loops, and error handling to build ETL and data orchestration inside DBSQL.
- Stored procedures and dynamic SQL via EXECUTE IMMEDIATE for modular, reusable logic and cross-table operations.
- Advanced patterns such as recursive CTEs, materialized views with incremental refresh, and Lakehouse Federation for remote queries and data integration.
- Use cases include end-to-end data pipelines, data modeling, geospatial analysis with H3/ST, AI-enhanced queries, and governance-friendly data transformations.
Quick Start
Query a sample dataset to try a minimal procedural workflow by creating a DBSQL procedure that upserts a small table and then calling it.