SnowPro Core Recertification — Question 35
What does the LATERAL modifier for the FLATTEN function do?
Answer options
- A. Casts the values of the flattened data
- B. Extracts the path of the flattened data
- C. Joins information outside the object with the flattened data
- D. Retrieves a single instance of a repeating element in the flattened data
Correct answer: C
Explanation
The correct answer is C because the LATERAL modifier allows for the integration of data from outside the JSON object being flattened, enabling a complex join operation. Options A and B do not accurately describe the function of LATERAL, and option D refers to retrieving instances rather than joining data.