I know this question must have been asked before but I can't find it when I am looking around. Basically I have a table with column 1 and 2, and I want to know how I can construct column 3 of this table:
user date number
---------------------------
1 2017-08-22 1
1 2017-08-22 1
1 2017-09-12 2
1 2017-09-12 2
1 2017-10-15 3
2 2017-05-23 1
2 2017-07-24 2
Anyone got an idea?