Thanks for your attention,
i am trying to create some sql statements...
Example 1:Count of times a player BetCall the flop whe he 3bets preflop out of position.
The column would be like this?? (i think it is correct)
sum( if[ holdem_hand_player_statistics.flg_p_3bet AND lookup_actions_f.action ='BC' AND holdem_hand_player_detail.flg_f_has_position= 'FALSE' , 1 ,0 ])
The proble is that i have been checking the results in postgre, and some "action text" are empty (see output below) when executing this statement:
why are some action text empty when is it clear that at least (the player is out of position) must be one (Bet or Check)???
SELECT DISTINCT
holdem_hand_player_statistics.id_hand,
lookup_actions."action"
FROM
public.player,
public.holdem_hand_player_statistics,
public.holdem_hand_player_detail,
public.lookup_actions
WHERE
player.id_player = holdem_hand_player_statistics.id_player AND
holdem_hand_player_statistics.id_hand = holdem_hand_player_detail.id_hand AND
holdem_hand_player_detail.id_action_f = lookup_actions.id_action AND
player.id_player = '4722' AND
holdem_hand_player_statistics.flg_p_3bet = 'TRUE' AND
holdem_hand_player_detail.flg_f_has_position = 'FALSE' AND
holdem_hand_player_statistics.flg_f_cbet
;
OUTPUT
"id_hand";"action"
2511795;""
2511906;""
2505821;""
2506193;""
2511906;"BF"
2511795;"B"
2511522;"B"
2506115;""
2511821;""
2511683;"B"
2506191;""
2511522;""
2506115;"B"
2505821;"XF"
2506193;"XF"
2511821;"B"
2511683;""
2506191;"B"
