SnowPro Core Certification — Question 270
What is the following SQL command used for?
Select * from table(validate(t1, job_id => '_last'));
Answer options
- A. To validate external table files in table t1 across all sessions
- B. To validate task SQL statements against table t1 in the last 14 days
- C. To validate a file for errors before it gets executed using a COPY command
- D. To return errors from the last executed COPY command into table t1 in the current session
Correct answer: D
Explanation
The correct answer, D, is accurate because the command is designed to return errors from the last COPY command executed in the current session, specifically into table t1. Options A and B are incorrect as they refer to validating external files and task SQL statements respectively, which are not the focus of the command. Option C does not apply because the command is not about validating files before execution, but rather reporting errors after execution.