Skip to main content

SQL Programming and Procedural Logic

This course covers both the foundational SQL logic and advanced procedural logic in Databricks. Students will learn to leverage SQL constructs such as CTEs, temporary views, and user-defined functions, along with dynamic SQL and parameterized queries to enhance security and efficiency. The course also delves into procedural logic, where students will explore how to replicate traditional stored procedures using Lakeflow Jobs (Workflows), manage task dependencies, and automate workflows. Additionally, students will discover strategies for migrating legacy stored procedures to Databricks.

Skill Level
Associate
Duration
4h
Prerequisites
Platform Proficiencies

SQL Workspaces and Warehouses

⇾ Notebooks (SQL, Python, markdown)
⇾ Lakehouse (inc. Delta Lake)
⇾ Unity Catalog
⇾ Workflows

Real-World Experience
⇾ Querying and analyzing data sets using SQL
⇾ Relational databases
⇾ Stored procedures in any SQL-based platform
⇾ Data migration or data modernization projects
⇾ Dynamic or parameterized queries

Broader Domain Knowledge
⇾ Core DWH concepts (ETL, schemas, data modeling)
⇾ SQL standards (ANSI SQL, SQL:2016 or later)
⇾ Data pipelines and orchestration workflows
⇾ BI and reporting concepts
⇾ Data governance and compliance principles

Outline

  • SQL Constructs in Databricks

- Common Table Expressions (CTEs)

- Temporary Views

- SQL User Defined Functions (UDFs)

- EXECUTE IMMEDIATE

- Parameterized SQL

- SQL Constructs


  • SQL Scripting in Databricks

- Compound Statements

- Variables

- Conditional Logic

- Control Flow with Looping Constructs

- Error and Exception Handling

- SQL Scripting


  • Procedural Logic in Databricks

- Introduction to Lakeflow Jobs

- Lakeflow Jobs

- Stored Procedure Migration Strategies

Self-Paced

Custom-fit learning paths for data, analytics, and AI roles and career paths through on-demand videos

See all our registration options

Registration options

Databricks has a delivery method for wherever you are on your learning journey

Runtime

Self-Paced

Custom-fit learning paths for data, analytics, and AI roles and career paths through on-demand videos

Register now

Instructors

Instructor-Led

Public and private courses taught by expert instructors across half-day to two-day courses

Register now

Learning

Blended Learning

Self-paced and weekly instructor-led sessions for every style of learner to optimize course completion and knowledge retention. Go to Subscriptions Catalog tab to purchase

Purchase now

Scale

Skills@Scale

Comprehensive training offering for large scale customers that includes learning elements for every style of learning. Inquire with your account executive for details

Upcoming Public Classes

Questions?

If you have any questions, please refer to our Frequently Asked Questions page.