What does the LATERAL modifier for the FLATTEN function do?
What does the LATERAL modifier for the FLATTEN function do?
The LATERAL modifier for the FLATTEN function in SQL is used to join information outside the object with the flattened data. This allows you to combine external data with the results of the FLATTEN function, making it possible to work with arrays and other nested data structures in a more integrated manner.
C. is correct Joins information outside the object with the flattened data https://docs.snowflake.com/en/user-guide/querying-semistructured#using-the-flatten-function-to-parse-arrays
C correct - https://docs.snowflake.com/en/user-guide/querying-semistructured