Snowflake Vs MS-SQL - Part 76 - COLLATE - Comparing Text Strings

          



COLLATE - Comparing Text Strings

Suppose you want to compare the string using case sensitivity. When comparing "HELLO" with "hello", it should not match.


MS-SQL Server 

 We can achieve it by using different collation SQL_LATIN1_GENERAL_CP1_CS_AS:





However, in Snowflake, we can use a similar approach by using COLLATE, as below:



Note: CS used here for case-sensitive. For case-insensitive, you can use CI.


For more details, you can refer: COLLATE
.


Yogesh Shinde

LinkedInProfile

<<< Back Next >>> 

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