Calculating rolling cohort retention with SQL · HackerTrans