COUNT_IF¶
COUNT_IF
Compute the total number of occurrences of true
in a column/group/window
of booleans. For example:
Is equivalent to
Note
When used as a window function with an ORDER BY
clause but no window frame, ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
is used by default.