Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 175 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 175
Topic #: 1
[All SnowPro Core Questions]

Which columns are part of the result set of the Snowflake LATERAL FLATTEN command? (Choose two.)

  • A. CONTENT
  • B. PATH
  • C. BYTE_SIZE
  • D. INDEX
  • E. DATATYPE
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
KarBiswa
Highly Voted 1 year, 9 months ago
Selected Answer: BD
The output of Flatten: SEQ A unique sequence number associated with the input record; the sequence is not guaranteed to be gap-free or ordered in any particular way. KEY For maps or objects, this column contains the key to the exploded value. PATH The path to the element within a data structure which needs to be flattened. INDEX The index of the element, if it is an array; otherwise NULL. VALUE The value of the element of the flattened array/object. THIS The element being flattened (useful in recursive flattening).
upvoted 15 times
...
Mallikharjuna452
Most Recent 4 months ago
PATH,INDEX
upvoted 1 times
...
_yyukta
8 months, 4 weeks ago
Selected Answer: BD
B and D are correct
upvoted 1 times
...
SoftwareEngineerGoneData
1 year, 3 months ago
Selected Answer: BD
https://docs.snowflake.com/en/sql-reference/functions/flatten#output
upvoted 2 times
...
VEEDOL
1 year, 5 months ago
answer - BD In Snowflake, the LATERAL FLATTEN command is used to unnest semi-structured data stored in variant or object columns. When you execute the LATERAL FLATTEN command, it generates a new virtual table with the unnested data. The result set of the LATERAL FLATTEN command includes the following columns: KEY: This column contains the key or path to the unnested element within the original semi-structured data. INDEX: This column represents the index of the unnested element within the array or object. ELEMENT: This column contains the value of the unnested element. These three columns make up the result set of the LATERAL FLATTEN command and provide the necessary information to access and process the unnested data.
upvoted 2 times
...
akhandelwal680
1 year, 6 months ago
A. CONTENT and B. PATH. The LATERAL FLATTEN command expands a VARIANT, OBJECT, or ARRAY column into multiple rows, where CONTENT represents the expanded values and PATH represents the path to the expanded values within the original column. The columns C. BYTE_SIZE, D. INDEX, and E. DATATYPE are not part of the result set of the LATERAL FLATTEN command.
upvoted 1 times
...
Sharan009
1 year, 9 months ago
The result value of flatten command is SEQ, PATH, KEY, INDEX, VALUE, THIS
upvoted 2 times
...
SV1122
1 year, 10 months ago
Was on exam Dec 31st 2022
upvoted 3 times
...
AlexbDku
1 year, 11 months ago
Selected Answer: BD
https://docs.snowflake.com/en/sql-reference/functions/flatten.html
upvoted 3 times
...
halol
1 year, 11 months ago
Selected Answer: BD
https://docs.snowflake.com/en/sql-reference/functions/flatten.html
upvoted 2 times
...
tejarun
1 year, 11 months ago
Selected Answer: BD
https://docs.snowflake.com/en/sql-reference/functions/flatten.html
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...