Tagged articles

Repurchase Analysis

1 articles · Page 1 of 1
Programmer1970
Programmer1970
Jan 19, 2025 · Databases

MySQL Interview Scenario: Analyzing E‑Commerce User Repurchase Behavior

This article presents a MySQL interview case that examines e‑commerce repurchase behavior using orders and users tables, defines repeat purchasers, computes average repurchase intervals and amounts, identifies high‑value customers, and aggregates results by city through CTEs, window functions, and grouped statistics.

CTECity-Level MetricsE-commerce Analytics
0 likes · 8 min read
MySQL Interview Scenario: Analyzing E‑Commerce User Repurchase Behavior