Amazon web services – Rolling distinct count for last 3 days (Presto DB)
I have my table like this: event_date user_id 2021-10-01 1 2021-10-01 2 2021-10-02 1 2021-10-02 2 2021-10-02 3 2021-10-03 3 2021-10-03 4 2021-10-03 4 2021-10-04 5 2021-10-04 2 2021-10-06 3 2021-10-06 5 Sample data WITH my_table (event_date, user_id) AS (…