How would a user execute a series of SQL statements using a task?
How would a user execute a series of SQL statements using a task?
To execute a series of SQL statements using a task, the most efficient way is to create a stored procedure that combines all the necessary SQL statements and then invoke this stored procedure from within the task. This ensures that all statements are executed in sequence as part of a single procedure call, providing better modularity and maintainability. Creating multiple tasks or attempting to use a task with direct SQL statements or sequences of stored procedures invocations is not ideal. Therefore, using a stored procedure with multiple SQL statements inside and invoking it from the task is the correct approach.
C is the answer
C is correct
https://community.snowflake.com/s/question/0D53r00009kC6WhCAK/can-a-task-have-multiple-sql-queries C is the answer
C is correct
correct