Snowflake Vs MS-SQL - Part 15 - Exclude


Exclude

Suppose one of your tables has many columns and when you are selecting the data you don't want all those columns and exclude a couple of columns then you have to specify the list of columns in the SELECT clause. 

MS-SQL Server 

You have to mention columns in the SELECT clause.



In Snowflake we can achieve this by using EXCLUDE

You can provide the list of columns that you don't want in the select clause after EXCLUDE.



If you are using JOIN to fetch records, in that case also you can use this EXCLUDE clause to remove columns from two or more tables.


For more details, you can refer to the following LINK.



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