A 3-step method for calculating retention + churn for any business (SaaS or Ecommerce) over any period (weekly, monthly, etc) in SQL, using Google BigQuery.
How to stand up Shopify analytics workflows in SQL in a cloud data warehouse like BigQuery: cohort analysis, buyer segmentation (via RFM), retention & churn analysis, forecasting, and basket analysis.