RienSQL
TASK #169 · Medium · Entain

Top-10 PC Gamers by Total Bet Spend

Your brief
Consider only the bets from bets placed on games with the category PC (games.game_category).

Write a query that returns the top-10 players by total amount of such bets. For every player output customer_name (from customers.name), pc_games_played (number of distinct PC games they bet on) and total_spend (total amount bet on PC games). Sort the result by total_spend descending.
Expected columnscustomer_name pc_games_played total_spendEntain / Bwin
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
customerscustomer_id, name, country, active
gamesgame_id, name, game_category
betsbet_id, customer_id, game_id, bet_date, bet_amount, betting_type
winswin_id, customer_id, win_date, win_amount