Get startedGet started for free

UDF vs Stored Procedure

Harbr's data team needs a nightly reconciliation process that: (1) reads from staging_shipments, (2) inserts new rows into shipments, (3) updates a delivery_summary table, and (4) logs completion to an audit_log table. The logic needs variables and error handling across all three DML operations. Should this be a UDF or a stored procedure?

This exercise is part of the course

Data Pipeline Automation in Snowflake

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise