AFq for sb and bb

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

AFq for sb and bb

Postby Nitilism » Sat Apr 18, 2009 9:12 pm

For HU games, I am trying to build AFq's per street specific to positions. Following the format used by PT3 for AFq, I made a column cnt_f_bet_sb which I defined as:

sum(if[tourney_holdem_hand_player_statistics.flg_blind_s and tourney_holdem_hand_player_statistics.flg_f_bet, 1, 0])

I then tried to make cnt_f_raise_sb similarly, but discovered there was no flg_f_raise field in the tourn_holdem_payer_stat database, and likewise for the turn and river, although the rest of the flg fields I would need for AFq's seem to be there.

Is there a way to create the Flg_f_raise field or create another column that would be equivalent?

Thanks
Nitilism
 
Posts: 8
Joined: Sun Feb 22, 2009 5:19 pm

Re: AFq for sb and bb

Postby Nitilism » Sat Apr 18, 2009 11:51 pm

I think I figured this out, would this be the equivalent to cnt_f_raise but only for flop raises in the sb

cnt_f_raise_sb = sum(if[tourney_holdem_hand_player_statistics.flg_blind_s and (tourney_holdem_hand_player_statistics.flg_f_3bet or tourney_holdem_hand_player_statistics.flg_f_4bet or tourney_holdem_hand_player_statistics.flg_f_first_raise), 1, 0])
Nitilism
 
Posts: 8
Joined: Sun Feb 22, 2009 5:19 pm

Re: AFq for sb and bb

Postby WhiteRider » Sun Apr 19, 2009 2:19 pm

You just need to add a check for
tourney_holdem_hand_player_statistics.cnt_f_raise > 0
You can raise more than once, so the database field records how many times the player raised on the flop.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: AFq for sb and bb

Postby Nitilism » Sun Apr 19, 2009 4:06 pm

Do you mean this or something different...

cnt_f_raise_sb = sum(if[tourney_holdem_hand_player_statistics.flg_blind_s and tourney_holdem_hand_player_statistics.cnt_f_raise > 0 and (tourney_holdem_hand_player_statistics.flg_f_3bet or tourney_holdem_hand_player_statistics.flg_f_4bet or tourney_holdem_hand_player_statistics.flg_f_first_raise), 1, 0])
Nitilism
 
Posts: 8
Joined: Sun Feb 22, 2009 5:19 pm

Re: AFq for sb and bb

Postby kraada » Mon Apr 20, 2009 10:02 am

cnt_f_raise_sb = sum(if[tourney_holdem_hand_player_statistics.flg_blind_s and tourney_holdem_hand_player_statistics.cnt_f_raise > 0, 1, 0])

is sufficient as cnt_f_raise is the count of all raises, not exact 2-bets (that is, it's not when you raise a bet, it's when you raise any bet).
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