Write a query using rt_signups and rt_activity to return every signup-month cohort, with month-start DATE cohort_month and full cohort_size.
active_user_months counts distinct user-month pairs from the signup month onwards. Repeated events in one month count once; activity before the cohort month is excluded.
avg_active_months is that total divided by the full cohort size, rounded to two decimal places, including never-active members in the denominator. max_active_months is the largest number of qualifying active months for one cohort member, or 0 when nobody was active.
Ordering: Sort by cohort_month ascending.