ExamGecko
Question list
Search
Search

Question 299 - COF-C02 discussion

Report
Export

What is the difference between a stored procedure and a User-Defined Function (UDF)?

A.
Stored procedures can execute database operations while UDFs cannot.
Answers
A.
Stored procedures can execute database operations while UDFs cannot.
B.
Returning a value is required in a stored procedure while returning values in a UDF is optional.
Answers
B.
Returning a value is required in a stored procedure while returning values in a UDF is optional.
C.
Values returned by a stored procedure can be used directly in a SQL statement while the values returned by a UDF cannot.
Answers
C.
Values returned by a stored procedure can be used directly in a SQL statement while the values returned by a UDF cannot.
D.
Multiple stored procedures can be called as part of a single executable statement while a single SQL statement can only call one UDF at a time.
Answers
D.
Multiple stored procedures can be called as part of a single executable statement while a single SQL statement can only call one UDF at a time.
Suggested answer: A

Explanation:

Stored procedures in Snowflake can perform a variety of database operations, including DDL and DML, whereas UDFs are designed to return values and cannot execute database operations1.

asked 23/09/2024
Tobi Space
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first