Snowflake Vs MS-SQL - Part 77 - Remove Duplicates From String
Remove Duplicates From String
Suppose you have a string that contains values separated by a delimiter, and you have to remove those duplicates.
-- Actual String
'A, B, C, a, b'
-- Expected String
'A, B, C'
MS-SQL Server
In Snowflake, we can use a similar approach by using LISTAGG & SPLIT_TO_TABLE, as below
Yogesh Shinde
Comments
Post a Comment