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.
Loading…
Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.
Ask questions, share alternate queries, and explore solutions
Your recent query executions and answer checks
This will insert the verified MySQL solution into your editor so you can study how each clause transforms the table.