I want to break down how often BB folds to various size SB steals. So, I think I got minraise working:
I have:
(cnt_p_BB_fold_to_SB_minraise / cnt_p_BB_fold_to_SB_opp_minraise) * 100
where cnt_p_BB_fold_to_SB_minraise is:
sum(if[substring(lookup_actions_p.action from 1 for 1)='F' AND
holdem_hand_player_statistics.position = 8 AND
holdem_hand_player_detail.amt_p_raise_facing <= (2 * holdem_limit.amt_bb) AND holdem_hand_player_detail.val_p_raise_aggressor_pos = 9 AND holdem_hand_player_statistics.flg_blind_def_opp,1,0])
and cnt_p_BB_fold_to_SB_opp_minraise is:
sum(if[holdem_hand_player_statistics.position = 8 AND holdem_hand_player_detail.val_p_raise_aggressor_pos = 9 AND holdem_hand_player_detail.amt_p_raise_facing <= (2 * holdem_limit.amt_bb) AND
holdem_hand_player_statistics.flg_blind_def_opp,1,0])
It seems like it is working, when I had it report attempts/success in the HUD. However, when I tried to add additional ones like fold to bigger than a minraise, PT tells me that my SQL is invalid when I try to save it. In fact, if I just try to save the existing columns again, it tells me that what's already in there is invalid.
Also, is there a list/description of the data structures you can use for these columns? I only found *.amt_p_raise_facing by searching the forums for minraise, and finding someone elses code that included that. So, I'm not sure if the BB is "facing" 1BB when it's minraised or 2...
