Snowflake Vs MS-SQL - Part 49 - NATURAL JOIN
NATURAL JOIN
To pull data from multiple tables, we often need to use different JOINS along with joining conditions.
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 NATURAL JOIN.
You can use this clause when both tables have a column with the same name. In this case, Store_ID is present in both tables.
You don't need to mention the column name when you are joining both tables.
Yogesh Shinde
Comments
Post a Comment