TASK #169 · Medium · EntainTop-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.
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.
Ctrl / ⌘ + ↵
Result
Write a query and run it to see the results.
Schema
customerscustomer_id, name, country, activegamesgame_id, name, game_categorybetsbet_id, customer_id, game_id, bet_date, bet_amount, betting_typewinswin_id, customer_id, win_date, win_amount