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. 



For more details, you can refer to the following NATURAL JOIN.




Yogesh Shinde

LinkedInProfile

<<< Back Next >>>

Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Part 36 - SPLIT_TO_TABLE

Snowflake Vs MS-SQL - Part 63 - ON Clause & Cross Join

Snowflake Vs MS-SQL - Part 33 - INITCAP