How to find last active day for each user in SQL? – Amazon web services
I have a table which looks like this: date user_id active_dt last_active_day 2020-01-01 1 null null 2020-01-02 1 null null 2020-01-03 1 null null 2020-01-04 1 2020-01-05 null 2020-01-05 1 2020-01-08 2020-01-05 (as of 2020-01-05, the last actve date was…