I want to filter all preflop open allin hole_cards.
- Code: Select all
SELECT hole_cards FROM tourney_game_players WHERE pre_flop_bet=chip_count AND hole_cards IS NOT NULL
the problem if someone is BB then the pre_flop_bet=chip_count-blind_amt OR if he SB pre_flop_bet=chip_count-(blind_amt/2)
how should i build this into my query?