MySQL Interview Scenario: Analyzing High-Value E‑Commerce Users
The article shows how to use MySQL CTEs and window functions to identify e‑commerce users who spent over 10,000 CNY in 2023, calculate their average spend and order count, determine their share of all users, and break the results down by city.
