SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Google Play: High-Value Repeat Spenders

Unsolved

Google Play Commerce analyzes user purchasing patterns to reward high-value players. Write a SQL query to identify users located in 'US' or 'UK' who have completed at least 3 separate in-app purchases with a combined expenditure of at least $100.00. Output the `user_id`, `username`, `country`, `total_purchases` (`COUNT`), and `total_spent` (`SUM` rounded to 2 decimal places). Order the results by `total_spent` in descending order, breaking ties by `user_id` in ascending order.

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Google

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM play_users
Full source dataset
6 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine