SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Top Gaming Purchasers

Unsolved

The marketplace team wants a ranked list of customers by their gaming purchases. A transaction counts when the product it bought carries the tag 'gaming'. Customers with no gaming transactions are left out. Write an SQL query that returns customer_id, customer_name and gaming_transactions. Order the results by gaming_transactions descending, then customer_id ascending.

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:
🏢 Meta

Submission History

Your recent query executions and answer checks

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