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
7 months agoCora
7 months agoKris
7 months agoMicah
8 months agoDominga
8 months agoLorrine
8 months agoCarmen
8 months agoNorah
8 months agoMalcolm
9 months agoLennie
9 months agoShayne
9 months agoJeffrey
9 months agoMerissa
9 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