Snowflake Vs MS-SQL - Part 36 - SPLIT_TO_TABLE

SPLIT_TO_TABLE Sometimes we get a string with commas separated and we need to convert it into rows as below: Suppose you receive a string in this format ' 1,2,3,4,5 ' And you want to return like this. MS-SQL Server You can achieve this by using multiple ways. In the recent version of MS SQL Server, they came up with a new String Function STRING_SPLIT . In Snowflake , we can use a similar function SPLIT_TO_TABLE as STRING_SPLIT. For more details, you can refer to the following SPLIT_TO_TABLE . Yogesh Shinde LinkedInProfile <<< Back Next >>>