A task can execute any one of the following types of SQL code:
Single SQL statement
Call to a stored procedure
Procedural logic using Snowflake Scripting Developer Guide
https://docs.snowflake.com/en/user-guide/tasks-intro.html
https://docs.snowflake.com/en/sql-reference/sql/create-task
As per the snowflake documentation, multiple SQL statments can be executed in a task through SNOWSQL by setting up a delimiter
Multiple SQL statements using SnowSQL
Create task executes multiple SQL statements. Example, task modifies the TIMESTAMP_OUTPUT_FORMAT for the session and then queries the CURRENT_TIMESTAMP function.
The SQL code in the task definition includes multiple statements. To execute the CREATE TASK statement, you must temporarily set a character other than a semicolon as the delimiter for SQL statements; otherwise, the CREATE TASK statement would return a user error. The command to change the SQL delimiter in SnowSQL is !set sql_delimiter = <character>.
https://docs.snowflake.com/en/sql-reference/sql/create-task
Now Decide B or C, As per my understanding, may be now they have add this feature, so as per old snowflake its B but for now its C
A task can execute any one of the following types of SQL code:
Single SQL statement
Call to a stored procedure
Procedural logic using Snowflake Scripting Developer Guide
https://docs.snowflake.com/en/user-guide/tasks-intro
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
SV1122
Highly Voted 2 years, 6 months agouser_1011
Most Recent 1 month, 3 weeks agoMallikharjuna452
11 months, 1 week agoYoshiSamoZou
1 year agodeeshubh
1 year, 1 month agoPrashn
1 year, 3 months ago_yyukta
1 year, 4 months agoOscarWest2023
2 years, 1 month agodmitriypo
2 years, 1 month agoPrajdeo
2 years, 3 months agosnowcert
2 years, 6 months agoRob__C
2 years, 6 months agoSnowProCertDec22
2 years, 6 months agohalol
2 years, 6 months ago