From the course: Introduction to Modern Data Engineering with Snowflake
Unlock this course with a free trial
Join today to access over 24,500 courses taught by industry experts.
Complex procedural logic with stored procedures - Snowflake Tutorial
From the course: Introduction to Modern Data Engineering with Snowflake
Complex procedural logic with stored procedures
Earlier, you used UDFs to perform very specific computations. They helped us perform conversions between units of measurement, and they scaled really well when we used them to derive new columns in a view. UDFs excel at this, but when you want to go beyond specific computations and perhaps capture and reuse more complex logic, then you might want to consider a stored procedure over a UDF. Before getting into the details of stored procedures, I'm sure you might be wondering what exactly constitutes more complex logic. Well, the exact specifics will, of course, depend on your use case. But generally speaking, store procedures might, for example, execute a series of operations that could include multiple SQL statements, transactional logic, or other complex workflows. For example, a stored procedure could be used to process an order, update inventory, generate reports, or maybe execute some other specific critical business logic. But the gist is that stored procedures are a set of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
What are data transformations?2m 19s
-
(Locked)
Data transformations with SQL5m 38s
-
(Locked)
Data transformations with snowpark7m 7s
-
(Locked)
Computations with user-defined functions7m 15s
-
(Locked)
Efficient transformations with streams8m 9s
-
(Locked)
Complex procedural logic with stored procedures6m 31s
-
(Locked)
Automatic transformations with dynamic tables8m 7s
-
(Locked)
Data transformations in visual studio code (optional)4m 34s
-
(Locked)
Recap and best practices for data transformations1m 39s
-
(Locked)
-
-