nerdexam
Snowflake

COF-C02 · Question #155

What is the following SQL command used for? Select * from table(validate(t1, job_id => '_last'));

The correct answer is D. To return errors from the last executed COPY command into table t1 in the current session. The SQL command Select * from table(validate(t1, job_id => '_last')); is used to return errors from the last executed COPY command into table t1 in the current session. It checks the results of the most recent data load operation and provides details on any errors that occurred…

Data Loading and Unloading

Question

What is the following SQL command used for? Select * from table(validate(t1, job_id => '_last'));

Options

  • ATo validate external table files in table t1 across all sessions
  • BTo validate task SQL statements against table t1 in the last 14 days
  • CTo validate a file for errors before it gets executed using a COPY command
  • DTo return errors from the last executed COPY command into table t1 in the current session

How the community answered

(54 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    2% (1)
  • D
    93% (50)

Explanation

The SQL command Select * from table(validate(t1, job_id => '_last')); is used to return errors from the last executed COPY command into table t1 in the current session. It checks the results of the most recent data load operation and provides details on any errors that occurred during that

Topics

#Data Loading#Error Handling#COPY INTO#Validate Function

Community Discussion

No community discussion yet for this question.

Full COF-C02 Practice