Hello everyone!
Can someone help me, what code should I use to create a new column which will display cumulatively the number of preceding rows in which "0" appeared in the column NumEvents. The counting should reset and begin from 0 again every time a new record in the column USERS_PK1 appears.
from:
![[Image: upRoh.png]](https://i.stack.imgur.com/upRoh.png)
to smth like this:
![[Image: ysqSC.png]](https://i.stack.imgur.com/ysqSC.png)
Thanks in advance!
Can someone help me, what code should I use to create a new column which will display cumulatively the number of preceding rows in which "0" appeared in the column NumEvents. The counting should reset and begin from 0 again every time a new record in the column USERS_PK1 appears.
from:
![[Image: upRoh.png]](https://i.stack.imgur.com/upRoh.png)
to smth like this:
![[Image: ysqSC.png]](https://i.stack.imgur.com/ysqSC.png)
Thanks in advance!