Snowflake Vs MS-SQL - Part 37 - GROUP_BY_ALL

      


GROUP BY ALL

Suppose you have the data as below:


If you want to group on this dataset as below:



MS-SQL Server 

You can achieve this by using the Group By clause. 



In Snowflake we can use the same Group By clause; however, we can skip the list of tables. This will be helpful if you have fewer columns in Group By clause.



For more details, you can refer to the following Group_By_All




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