Write a query using fp_signups and fp_orders to report retention by the calendar month of each user’s first order, rather than by signup month. Find the first order by ordered_on, not by order_id.
Return cohort_month as a month-start DATE and cohort_size as the number of users whose first order fell in that month. Users with no orders belong to no cohort and are excluded from all counts.
m1_retained counts users with at least one order in the calendar month immediately after their first-order month. Additional orders in month 0 do not qualify. m1_pct is that count divided by cohort size, multiplied by 100 and rounded to one decimal place.
Ordering: Sort by cohort_month ascending.