Skip to content

Commit 6276346

Browse files
Update conditional_true_event.md
1 parent 0628f2d commit 6276346

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

conditional_true_event.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Conditional True Event
22

3-
`CONDITIONAL_TRUE_EVENT` is a powerful, yet underutilized Window Function in Snowflake. `CONDITIONAL_TRUE_EVENT` let's you cumulatively count the occurrences of a TRUE event in a WINDOW. Under the cover, `CONDITIONAL_TRUE_EVENT` assigns an event window number to each row, starting from 0, and increments the number by 1 when the result of the boolean argument expression evaluates true.
3+
`CONDITIONAL_TRUE_EVENT` is a powerful, yet underutilized Window Function in Snowflake. `CONDITIONAL_TRUE_EVENT` let's you cumulatively count the occurrences of a TRUE event in a WINDOW.
4+
5+
`CONDITIONAL_TRUE_EVENT` assigns an event window number to each row, starting from 0, and increments the number by 1 when the result of the boolean argument expression evaluates true.
46

57
Here is a example of how to use it to count number of days the stock price was higher than the previous highest value of the Stock for a given Window.
68

0 commit comments

Comments
 (0)