Exam SnowPro Core All QuestionsBrowse all questions from this exam
Question 700

What is the purpose of using the OBJECT_CONSTRUCT function with the COPY INTO command?

    Correct Answer: B

    The purpose of using the OBJECT_CONSTRUCT function with the COPY INTO command is to convert the rows in a relational table to a single VARIANT column and then unload the rows into a file. This approach is useful for transforming tabular data into a semi-structured format such as JSON, which can then be easily managed and processed.

Discussion
ukpinoOption: B

Unloading a Relational Table to JSON¶ You can use the OBJECT_CONSTRUCT function combined with the COPY command to convert the rows in a relational table to a single VARIANT column and unload the rows into a file.

MultiCloudIronManOption: B

Correct