Bet Turn % after c/r Flop

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

Bet Turn % after c/r Flop

Postby js2002 » Fri Feb 04, 2011 9:20 am

We have the build-in column "cnt_t_total_actions" which counts bets calls checks folds and raises.

and we have the build-in column "cnt_f_check_raise" which makes a SUM: sum(if[holdem_hand_player_statistics.flg_f_check_raise, 1, 0])

How do I combine these 2 in best way?

I cant just make a new column and say: cnt_t_total_actions + cnt_f_check_raise because this would result in: x+1

Do I have to do this?:
sum(if[holdem_hand_player_statistics.flg_f_check_raise, cnt_t_total_actions , 0])

or doenst it validate so I have to make this?:

cnt_t_total_actions
sum(if[holdem_hand_player_statistics.flg_f_check_raise, bets +calls +checks +folds +raises, 0])


EDIT: TESTED BOTH: FAIL VALIDATION. So: How do I combine the 2 mentioned above?

I tried
c/r AND (bet OR fold OR raise OR check OR call) but flg_t_call doenst exist

maybe I could do it like this: c/r Flop AND saw turn flag? That should catch all or?
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: Bet Turn % after c/r Flop

Postby js2002 » Fri Feb 04, 2011 10:05 am

sum(if[lookup_actions_f.action LIKE 'XR' AND holdem_hand_player_statistics.flg_t_bet,1,0])
________
sum(if[lookup_actions_f.action LIKE 'XR'
AND holdem_hand_player_detail.flg_t_open_opp ,1,0])

ok?
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: Bet Turn % after c/r Flop

Postby WhiteRider » Fri Feb 04, 2011 10:28 am

That looks good, but will only count hands where the player's flop action is to exactly check/raise, with no further action.
If you want account all hands where they check raise (and possibly face a re-raise) then you need to use:

lookup_actions_f.action LIKE 'XR%'

Of course, you may not want to count those hands.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Bet Turn % after c/r Flop

Postby js2002 » Fri Feb 04, 2011 12:20 pm

Thx 4 that open eye!
without %s is ok! nevertheless 4 see more than 2 eyes :)
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: Bet Turn % after c/r Flop

Postby kraada » Sat Feb 05, 2011 9:54 am

js2002 wrote:nevertheless 4 see more than 2 eyes :)


And that's why I wear glasses ;)
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