Snowflake Data Cloud (50 Qs)•Part 2: Security, Governance, Performance & Sharing (11 - 24)
What are Stored Procedures vs User-Defined Functions (UDFs) in Snowflake?
junior LevelFormsPerformanceSecurity & Auth
In Simple Words:
- UDF: Calculates and returns a single value or table. Can be invoked directly in
SELECTqueries. - Stored Procedure: Executes administrative tasks, dynamic SQL, and transaction management via
CALL procedure_name().