Complete the code to create a scheduled task that runs every hour.
CREATE OR REPLACE TASK hourly_task
WAREHOUSE = my_warehouse
SCHEDULE = [1]
AS
SELECT CURRENT_TIMESTAMP();The schedule string '1 HOUR' sets the task to run every hour.
Complete the code to enable the scheduled task after creation.
ALTER TASK hourly_task [1];The RESUME command activates the task so it can run on schedule.
Fix the error in the task creation by completing the missing clause.
CREATE OR REPLACE TASK daily_task
WAREHOUSE = my_warehouse
SCHEDULE = [1]
AS
CALL my_procedure();The schedule '1 DAY' runs the task once every day, which fits the daily_task name.
Fill both blanks to create a task that runs every 15 minutes and uses the correct warehouse.
CREATE OR REPLACE TASK quarter_hour_task WAREHOUSE = [1] SCHEDULE = [2] AS SELECT CURRENT_DATE();
Use the correct warehouse name and the schedule string '15 MINUTES' for a 15-minute interval.
Fill all three blanks to create a task that runs weekly, uses the correct warehouse, and calls the right procedure.
CREATE OR REPLACE TASK weekly_task WAREHOUSE = [1] SCHEDULE = [2] AS CALL [3]();
The warehouse is 'analytics_warehouse', schedule is '1 WEEK' for weekly runs, and the procedure called is 'weekly_refresh'.