SnowPro Core Exam QuestionsBrowse all questions from this exam

SnowPro Core Exam - Question 89


The FLATTEN function is used to query which type of data in Snowflake?

Show Answer
Correct Answer: B

The FLATTEN function in Snowflake is used to query semi-structured data. Semi-structured data often contains nested structures, such as JSON or XML, which require flattening to break the data into a more tabular form for easier querying. Structured data, on the other hand, is already in a tabular format and does not need flattening.

Discussion

7 comments
Sign in to comment
lhstudylhOption: B
Feb 28, 2022

Correct answer FLATTEN is used to unnest semi-structured data. Don't see an application for structured data as by definition it shouldn't be nested.

MBratOption: C
May 19, 2024

C is correct, see https://docs.snowflake.com/en/sql-reference/data-types-structured#label-structured-types-working-flatten

Tapasgup007Option: B
Dec 8, 2022

B is correct

Mayuri917233Option: B
May 11, 2023

B is correct

MultiCloudIronManOption: B
Jul 15, 2023

Correct

372110cOption: C
Jun 25, 2024

Works with both

Mallikharjuna452Option: C
Jul 18, 2024

It works for both