Request for/help creating HU 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

Re: Request for/help creating HU stats

Postby kraada » Mon Dec 22, 2008 10:42 am

Yes, in heads up spots once you add the line to make sure we're not facing a turn bet into us, that should work properly.

You can check if you have absolute position on the table with the flag flg_f_has_position.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Request for/help creating HU stats

Postby madskills » Mon Dec 22, 2008 12:12 pm

Awesome thanks for all the help.
Having a bit of trouble getting Steal Lead Turn OOP.
PT3 is saying its not valid SQL

sum(if[holdem_hand_player_detail.val_p_raise_aggressor_pos < holdem_hand_player_statistics.position AND
holdem_hand_player_statistics.flg_p_face_raise AND NOT
holdem_hand_player_statistics.flg_p_3bet AND
holdem_hand_player_statistics.flg_f_check AND NOT
holdem_hand_player_statistics.flg_f_face_bet, 1, 0])

If I change the last line from flg_f_face_bet to flg_f_face_raise it says its valid, so I'm guessing I have the expression incorrect for how to chk if the player faced a bet?
madskills
 
Posts: 28
Joined: Mon May 19, 2008 7:42 pm

Re: Request for/help creating HU stats

Postby WhiteRider » Mon Dec 22, 2008 12:16 pm

There is no "holdem_hand_player_statistics.flg_f_face_bet" field.
You will need to use "holdem_hand_player_statistics.flg_f_3bet_opp" instead (the opportunity to 3-bet).
When you are looking at this kind of thing, click the 'insert' link and browse the database tables (make sure you click the column header on the right hand side to sort the fields alphabetically.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Request for/help creating HU stats

Postby kraada » Mon Dec 22, 2008 2:54 pm

WhiteRider is right there's no flg_f_face_bet field but you can do:
NOT(holdem_hand_player_detail.amt_f_bet_facing > 0) and that will ensure you aren't facing a flop bet (sorry for not noticing that sooner).
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Request for/help creating HU stats

Postby WhiteRider » Tue Dec 23, 2008 7:29 pm

kraada wrote:WhiteRider is right there's no flg_f_face_bet field but you can do:
NOT(holdem_hand_player_detail.amt_f_bet_facing > 0) and that will ensure you aren't facing a flop bet (sorry for not noticing that sooner).

:oops:
That'll teach me to do quick answers..
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Previous

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

Who is online

Users browsing this forum: No registered users and 5 guests