Answer the question
In order to leave comments, you need to log in
How to calculate the cumulative sum of unique users?
Let's say I have the following frame:
day_no user_id
0
a
0 b
0 c
0 d
0 e
0 f
1 a
2 c
2 e
3 f
3 a
4 a
it turned out like this:
day_no sum_unique_users
4 1
3 2
2 4
1 4
0 6
How can this be calculated in postgresql?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question