Snowflake
COF-C02 · Question #192
How would a user execute a series of SQL statements using a task?
The correct answer is C. Use a stored procedure executing multiple SQL statements and invoke the stored procedure from. To execute a series of SQL statements using a task, a user would use a stored procedure that contains multiple SQL statements and invoke this stored procedure from the task. References: Snowflake Documentation.
Snowflake Cloud Data Platform Features and Architecture
Question
How would a user execute a series of SQL statements using a task?
Options
- AInclude the SQL statements in the body of the task CREATE TASK mytask .. AS INSERT INTO
- BA stored procedure can have only one DML statement per stored procedure invocation and
- CUse a stored procedure executing multiple SQL statements and invoke the stored procedure from
- DCreate a task for each SQL statement (e.g. resulting in task1, task2, etc.) and string the series of
How the community answered
(32 responses)- B3% (1)
- C94% (30)
- D3% (1)
Explanation
To execute a series of SQL statements using a task, a user would use a stored procedure that contains multiple SQL statements and invoke this stored procedure from the task. References: Snowflake Documentation.
Topics
#Snowflake Tasks#Stored Procedures#Data Orchestration#SQL Automation
Community Discussion
No community discussion yet for this question.