Snowflake Vs MS-SQL - Part 93 - MERGE ALL BY NAME


MERGE ALL BY NAME

If you are performing upsert operations, you need to provide a list of columns in the Update as well as the Insert clause.

MS-SQL Server 

We can achieve it as follows:



In Snowflake we can use the same query as above; however, we can use MERGE as follows:




For more details, refer to the MERGE-By-Using-All-By-Name section.



Comments

Popular posts from this blog

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

Snowflake Vs MS-SQL - Part 70 - UNION By Name

Snowflake Vs MS-SQL - Part 68 - Multi Table Insert