Golom,
Thanks again. I have now adapted your code to the actual table, which has a couple idiosyncrasies, and I am getting a strange result.
SELECT Avg(BS.total_won - BS.total_bet) AS [Avg Won], BS.hole_cards AS [Hole Cards], count(*) AS [Sample Size]
FROM [SELECT *
FROM game_players AS GP...