IvánDíazLab

Which channel brings customers who stay?

SQL to find which channels bring customers who stay.

Project context image: Data Analysis with SQL.
Data Analysis with SQLProject context image

SQL · CTE · Window functions

What changes.

Objective

Answer acquisition, retention, and profitability questions with optimized, reproducible SQL queries.

Results

Ready-to-replicate, documented queries.

How it was built.Decisions, evidence and details

Objective

Answer acquisition, retention, and profitability questions with optimized, reproducible SQL queries.

Methodology

  1. Review the relational schema and foreign keys.
  2. Build queries with JOINs and CTEs to derive user, order, and traffic metrics.
  3. Use window functions for cohorts and monthly churn.
  4. Export to CSV for dashboards in Tableau or Looker Studio.

Key visualizations

  • Retention and monthly churn cohorts.
  • Conversion and ARPU by acquisition channel.
  • Revenue curve and LTV vs. CAC.

Results

  • Ready-to-replicate, documented queries.
  • Identification of the highest ROI acquisition channels.
  • Key metrics (ARPU, LTV, churn) available for executive dashboards.

Your operation can take the next step.

Let’s talkMore projects