Snowflake Vs MS-SQL - Part 105 - PIVOT - Custom alias to column name


PIVOT - Custom alias to column name

When we are performing a PIVOT operation, we must provide aliases for the generated columns.

MS-SQL Server

We can achieve it as follows:



In Snowflake, we use PIVOT as follows:





For more details, refer to the PIVOT section.


Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Series

Snowflake Vs MS-SQL - Part 79 - Adding a comment to the Column of a Table

Snowflake Key Concepts