Snowflake Vs MS-SQL - Part 53 - CONTAINS
CONTAINS
If your table column has many records and you want to filter the data based on particular letter(s) consisting of. Eg. it should contain "tea"
Actual Data:
------------+
DRINK_NAME |
------------+
coffee |
ice tea |
latte |
tea |
[NULL] |
------------+
Expected Data:
------------+
DRINK_NAME |
------------+
tea |
ice tea |
------------+
MS-SQL Server
We can achieve this by using the LIKE operator as below.
In Snowflake, we can use a similar approach as above. However, Snowflake has an additional operator CONTAINS.
Yogesh Shinde
Comments
Post a Comment