Snowflake Vs MS-SQL - Part 9 - Count based on condition
Count based on condition
If you want to take a count based on condition then you have to use where clause.
Scenario 1:
Scenario 2:
In Snowflake we can achieve this by using same queries as above. However there is an alternative solution as below:Scenario 1:
Scenario 2:
I have not compared the performance, if anyone knows then please comment.
Comments
Post a Comment