Snowflake Vs MS-SQL - Part 50 - LATERAL JOIN
LATERAL JOIN
We often need to use different JOINS along with joining conditions to pull data from multiple tables.
MS-SQL Server
We can use any JOIN, here I have used INNER JOIN. For any join, you must mention columns in which you will join both tables.
In Snowflake, we can use a similar approach as above. However, Snowflake has an additional JOIN called LATERAL JOIN.
This looks like a sub-query. You can use lateral join along with other joins like inner join & outer join.
Yogesh Shinde
Comments
Post a Comment