stat formulation

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

stat formulation

Postby raph156 » Mon Sep 26, 2011 6:35 am

Hi,
I would like: player bet flop, face raise and reraise?
sum( if[ holdem_hand_player_statistics.flg_f_bet AND (holdem_hand_player_detail.amt_f_raise_facing>0) AND holdem_hand_player_statistics.flg_f_3bet , 1, 0])
And: face bet flop and raise?
sum( if[ holdem_hand_player_detail.amt_f_bet_facing AND (lookup_actions_f.action SIMILAR TO '(R|XR)%') , 1, 0])
Thanks for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: stat formulation

Postby kraada » Mon Sep 26, 2011 7:35 am

You want amt_f_bet_facing > 0 - otherwise everything should work as you have it.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: stat formulation

Postby raph156 » Mon Sep 26, 2011 12:23 pm

Hi,
I want: player raise, face reraise, raise, face reraise, raise?
sum( if[holdem_hand_player_detail.amt_p_raise_made BETWEEN ( 1*holdem_limit.amt_bb) AND ( 3*holdem_limit.amt_bb) AND holdem_hand_player_statistics.flg_blind_s AND holdem_hand_player_statistics.flg_p_3bet_def_opp AND holdem_hand_player_statistics.enum_p_3bet_action='R' AND holdem_hand_player_statistics.flg_p_4bet_def_opp AND holdem_hand_player_statistics.enum_p_4bet_action='R', 1, 0])
Thanks for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: stat formulation

Postby kraada » Mon Sep 26, 2011 12:32 pm

You could do that more simply with lookup_actions_p.action LIKE 'RRR%'

That means you made three raises - since you made 3 raises it implies that other people raised you to give you the opportunities you seek.

Don't expect this to come up often at all though.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: stat formulation

Postby raph156 » Mon Sep 26, 2011 2:02 pm

Ok, but i want the opportunity to each step of raise.
player raise, face reraise= 1 opportunity
raise
face reraise= 2
raise
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: stat formulation

Postby kraada » Mon Sep 26, 2011 2:22 pm

Then just use sum(holdem_hand_player_statistics.cnt_p_raise) - that adds up all of the individual raises a player made preflop.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: stat formulation

Postby raph156 » Mon Sep 26, 2011 3:12 pm

I want thise expression:
1_ raise pre flop, face a raise
2_ raise pre flop, face a raise, reraise
3_ raise pre flop, face a raise, reraise, face a raise
4_ raise pre flop, face a raise, reraise, face a raise, reraise

I made:
sum( if[ (1_) holdem_hand_player_detail.amt_p_raise_made BETWEEN ( 1*holdem_limit.amt_bb) AND ( 3*holdem_limit.amt_bb) AND holdem_hand_player_statistics.flg_blind_s AND holdem_hand_player_statistics.flg_p_3bet_def_opp (2_) AND holdem_hand_player_statistics.enum_p_3bet_action='R' (3_) AND holdem_hand_player_statistics.flg_p_4bet_def_opp (4_) AND holdem_hand_player_statistics.enum_p_4bet_action='R', 1, 0])

Thanks for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: stat formulation

Postby kraada » Mon Sep 26, 2011 3:17 pm

That will still only add 1 for each time all of that happens. as you have sum(if[...., 1, 0])
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: stat formulation

Postby raph156 » Mon Sep 26, 2011 3:24 pm

Yes, so the formulation give what i want?
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: stat formulation

Postby kraada » Mon Sep 26, 2011 3:27 pm

sum(holdem_hand_player_statistics.cnt_p_raise)

That adds up the number of times a player raised preflop.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Next

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

Who is online

Users browsing this forum: No registered users and 0 guests