RFI with stack size and other stats

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

RFI with stack size and other stats

Postby nyjedsazi » Sat Aug 06, 2011 12:42 pm

I want to use stats like

sum(if[(tourney_holdem_hand_player_detail.amt_p_raise_made BETWEEN tourney_holdem_blinds.amt_bb * 2 AND tourney_holdem_blinds.amt_bb * 3) AND tourney_holdem_hand_player_statistics.flg_p_first_raise AND tourney_holdem_hand_player_statistics.flg_p_open_opp AND tourney_holdem_hand_player_statistics.position=2, 1, 0])

+ if [stack size > 2000chips]

how can I do that?
nyjedsazi
 
Posts: 42
Joined: Thu Jun 03, 2010 5:04 pm

Re: RFI with stack size and other stats

Postby WhiteRider » Sat Aug 06, 2011 1:04 pm

Stack size is stored in the database field "tourney_holdem_hand_player_detail.amt_before".

So you can change your expression to this:

sum(if[(tourney_holdem_hand_player_detail.amt_p_raise_made BETWEEN tourney_holdem_blinds.amt_bb * 2 AND tourney_holdem_blinds.amt_bb * 3) AND tourney_holdem_hand_player_statistics.flg_p_first_raise AND tourney_holdem_hand_player_statistics.flg_p_open_opp AND tourney_holdem_hand_player_statistics.position=2 AND tourney_holdem_hand_player_detail.amt_before > 2000, 1, 0])

If you want to see the stack in BBs you can use:
tourney_holdem_hand_player_detail.amt_before / tourney_holdem_blinds.amt_bb
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: RFI with stack size and other stats

Postby nyjedsazi » Sat Aug 06, 2011 1:08 pm

tyvm!
nyjedsazi
 
Posts: 42
Joined: Thu Jun 03, 2010 5:04 pm


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

Who is online

Users browsing this forum: No registered users and 0 guests