Snowflake COF-R02 Exam - Topic 3 Question 45 Discussion
How would a user execute a series of SQL statements using a task?
D) Create a task for each SQL statement (e.g. resulting in task1, task2, etc.) and string the series of SQL statements by having a control task calling task1, task2, etc. sequentially.
A) Include the SQL statements in the body of the task CREATE TASK mytask .. AS INSERT INTO target1 SELECT .. FROM stream_s1 WHERE .. INSERT INTO target2 SELECT .. FROM stream_s1
WHERE ..
B) A stored procedure can have only one DML statement per stored procedure invocation and therefore the user should sequence stored procedure calls in the task definition CREATE TASK mytask .... AS
call stored_proc1(); call stored_proc2();
C) Use a stored procedure executing multiple SQL statements and invoke the stored procedure from the task. CREATE TASK mytask .... AS call stored_proc_multiple_statements_inside();
Dortha
9 months agoCora
9 months agoKris
9 months agoMicah
10 months agoDominga
10 months agoLorrine
10 months agoCarmen
10 months agoNorah
10 months agoMalcolm
11 months agoLennie
11 months agoShayne
11 months agoJeffrey
11 months agoMerissa
11 months agoMatthew
2 years agoArleen
2 years agoCasie
2 years agoVirgina
2 years agoHubert
2 years agoGermaine
2 years agoTuyet
2 years agoDoretha
2 years agoTruman
2 years agoClaribel
2 years agoNydia
2 years agoEmmanuel
2 years agoIluminada
2 years agoWinfred
2 years agoArleen
2 years agoVirgie
2 years agoLetha
2 years agoNickie
2 years agoHelaine
2 years agoCelestina
2 years agoLisha
2 years ago