Question 81 · 1323 in bank
What function, combined with the copy command, should be used to unload data from a relational table into a JSON file?
Show answer
Answer: D
Explanation
D is correct: 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. https://docs.snowflake.com/en/user-guide/data-unload-considerations
Source: Adapted from community discussion — 4762448