I'm trying to create a Custom Stat for a friend.
He often faces people donkbetting the flop, and likes to raise them, but would like to know their fold% in this situation.
I concluded that I would have to create a new column, and that it would be a cross between:
1) cnt_f_cbet_fold_to_raise and 2) cnt_f_donk
The first is:
sum(if[holdem_hand_player_statistics.flg_f_cbet and lookup_actions_f.action LIKE 'BF', 1, 0])
and the second is:
sum(if[holdem_hand_player_statistics.flg_p_face_raise AND NOT(holdem_hand_player_statistics.flg_p_3bet OR holdem_hand_player_statistics.flg_p_4bet) AND holdem_hand_player_statistics.flg_f_bet AND NOT(holdem_hand_player_statistics.flg_f_cbet_opp) AND
((holdem_hand_summary.cnt_players > 2 and holdem_hand_player_detail.val_p_raise_aggressor_pos < holdem_hand_player_statistics.position) or (holdem_hand_summary.cnt_players = 2 and holdem_hand_player_statistics.flg_blind_b)),1,0])
I tried to combine the two, but was unable to make an SQL valid expression combining these two.
Help?
