Snowflake Vs MS-SQL - Part 100 - Split String into Different Columns

 


Split String into Different Columns

Suppose your application stores the name of an employee as a full name, and while retrieving, you want to separate it out as first name, middle name & last name.

MS-SQL Server

We can achieve it as follows:



In Snowflakewe can make use of SPLIT_PART as follows:




For more details, refer to the SPLIT_PART section.


Comments

Popular posts from this blog

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

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

Snowflake Key Concepts