From the below table I want the result at what attempt the each Emp_ID get the value '1' from the field value
Emp_ID | Value
167 | 0
175 | 0
175 | 1
167 | 0
188 | 0
188 | 0
167 | 1
216 | 1
188 | 1
217 | 0
Output Should be like this:
Emp_ID | Attempt_Count
167 | 3
175 | 2
188 | 3
216 | 1
217 | 0