- Code: Select all
sum(if[ (lookup_actions_p.action = 'C' OR lookup_actions_p.action = 'CC') AND cash_hand_player_statistics.flg_p_face_raise AND cash_hand_player_statistics.flg_f_bet AND char_length(cash_hand_summary.str_aggressors_p) >= 2 AND (substring(cash_hand_summary.str_aggressors_p from 2 for 1)::int > cash_hand_player_statistics.position OR cash_hand_player_statistics.flg_f_has_position), 1, 0])
2)(substring(cash_hand_summary.str_aggressors_p from 2 for 1)::int > cash_hand_player_statistics.position Here we checking the position of second aggressor (2bet) and compare it to active player position. What does ::int do?
3)Let say we had hand like this: BU 2bet, SB 3bet, BB calls, BU calls. F:xxx SB checks, BB bets (float) ...
In this hand BB cnt_f_float = 0, because it compare BB(8) position with the second aggressor (BU=0) not the last one (SB=9).