ExamGecko
Question list
Search
Search

List of questions

Search

Question 39 - DEA-C01 discussion

Report
Export

Pascal, a Data Engineer, have requirement to retrieve the 10 most recent executions of a specified task (completed, still running, or scheduled in the future) scheduled within the last hour, which of the following is the correct SQL Code ?

A.
Answers
A.
B.
select *
Answers
B.
select *
C.
from table(information_schema.task_history(
Answers
C.
from table(information_schema.task_history(
D.
scheduled_time_range_start=>dateadd('hour',-1,current_timestamp()),
Answers
D.
scheduled_time_range_start=>dateadd('hour',-1,current_timestamp()),
E.
result_limit => 10,
Answers
E.
result_limit => 10,
F.
task_name=>'MYTASK') WHERE query_id IS NOT NULL);
Answers
F.
task_name=>'MYTASK') WHERE query_id IS NOT NULL);
G.
Answers
G.
H.
select *
Answers
H.
select *
I.
from table(information_schema.task_history(
Answers
I.
from table(information_schema.task_history(
J.
scheduled_time_range_start=>dateadd('hour',-1,current_timestamp()),
Answers
J.
scheduled_time_range_start=>dateadd('hour',-1,current_timestamp()),
K.
result_limit => 11,
Answers
K.
result_limit => 11,
L.
task_name=>'MYTASK') WHERE query_id IS NOT NULL);
Answers
L.
task_name=>'MYTASK') WHERE query_id IS NOT NULL);
M.
Answers
M.
N.
select *
Answers
N.
select *
O.
from table(information_schema.task_history(
Answers
O.
from table(information_schema.task_history(
P.
scheduled_time_range_start=>dateadd('hour',-1,current_timestamp()),
Answers
P.
scheduled_time_range_start=>dateadd('hour',-1,current_timestamp()),
Q.
result_limit => 10,query_id IS NOT NULL
Answers
Q.
result_limit => 10,query_id IS NOT NULL
R.
task_name=>'MYTASK'));
Answers
R.
task_name=>'MYTASK'));
S.
Answers
S.
T.
select *
Answers
T.
select *
U.
from table(information_schema.task_history(
Answers
U.
from table(information_schema.task_history(
V.
scheduled_time_range_start=>dateadd('hour',-1,current_timestamp()),
Answers
V.
scheduled_time_range_start=>dateadd('hour',-1,current_timestamp()),
W.
result_limit => 10,
Answers
W.
result_limit => 10,
X.
task_name=>'MYTASK'));
Answers
X.
task_name=>'MYTASK'));
Suggested answer: D

Explanation:

To retrieve only tasks that are completed or still running, filter the query using WHERE query_id IS NOT NULL.

asked 23/09/2024
Joseph Bauer
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first