ExamGecko
Question list
Search
Search

Question 669 - COF-C02 discussion

Report
Export

Which Snowflake function and command combination should be used to convert rows in a relational table to a single VARIANT column, and unload the rows Into a file in JSON format? (Select TWO).

A.
PUT
Answers
A.
PUT
B.
GET
Answers
B.
GET
C.
COPY
Answers
C.
COPY
D.
EXPORT
Answers
D.
EXPORT
E.
OBJECT CONSTRUCT
Answers
E.
OBJECT CONSTRUCT
Suggested answer: C, E

Explanation:

To convert rows in a relational table to a single VARIANT column and unload the rows into a file in JSON format, you can use the COPY command in combination with the OBJECT_CONSTRUCT function. The OBJECT_CONSTRUCT function converts the row into a JSON object stored in a VARIANT column, and the COPY command can then be used to unload this data into a JSON file.

References:

Snowflake Documentation: OBJECT_CONSTRUCT

Snowflake Documentation: COPY INTO <location>

Top of Form

Bottom of Form

asked 23/09/2024
Ksu doo Makek
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first