TASK #168 · Easy · EntainAverage Bet per Betting Type
Your brief
In the bets table, the betting_type field takes the
values sports, casino, poker, esports.
Write a query that returns betting_type and avg_amount — the average bet size, rounded to two decimals. Sort by avg_amount ascending.
Write a query that returns betting_type and avg_amount — the average bet size, rounded to two decimals. Sort by avg_amount ascending.
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