by kraada » Tue Oct 04, 2011 10:37 am
There is no such field in the database which is why it is not valid. If you are looking for times where you faced a limp from the SB you'll want to do something like this:
not(holdem_hand_player_statistics.flg_p_face_raise) AND holdem_hand_player_statistics.position = 8 and ((lookup_actions_f.action = 'X' and holdem_hand_player_detail.flg_f_has_position) OR (100 * (holdem_hand_player_detail.amt_p_raise_made - (2 * cash_limit.amt_bb)) / holdem_hand_player_detail.amt_p_raise_made = holdem_hand_player_detail.val_p_raise_made_pct)
If you're in the BB and face a limp you haven't faced a raise, and you're in the big blind. Then you have two options - either you can check or raise. If you check and are in position, the only limper could have been from the small blind. If you raise and the size of your raise and the percentage of the pot that the raise was show that the pot was only two big blinds at the time, the only action could have been from the small blind.
This will miss a few edge cases when people post dead blinds but it should get the majority of the spots for you (and if you're playing true heads up games, it will catch them all).