SnowPro Core Certification — Question 809
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 LATERAL modifier allows the FLATTEN function to access data from other tables or subqueries in conjunction with the flattened data, enabling a join of external information. The other options do not accurately describe the functionality of the LATERAL modifier, as they focus on casting, extracting paths, or retrieving single instances, which do not involve combining external data.