ACtion text empty?

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

ACtion text empty?

Postby ibyoar » Mon Jun 06, 2011 12:43 pm

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"
ibyoar
 
Posts: 94
Joined: Mon Jun 06, 2011 12:31 pm

Re: ACtion text empty?

Postby kraada » Mon Jun 06, 2011 2:20 pm

You don't have an action string if you're all in - if you 3-bet and then get all in preflop, you wouldn't have any flop actions.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: ACtion text empty?

Postby ibyoar » Mon Jun 06, 2011 2:29 pm

i understand that, but this is not the case, i think...
in the sql statement i have the condition:holdem_hand_player_statistics.flg_f_cbet, if i were allin preflop this condition would be false, isnt?
ibyoar
 
Posts: 94
Joined: Mon Jun 06, 2011 12:31 pm

Re: ACtion text empty?

Postby kraada » Mon Jun 06, 2011 2:35 pm

You're right it should be. Could you extract the hand histories from the hands with empty action strings and attach them to a support ticket? We'll be able to investigate further for you then.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests