All in % sng,tourneys

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

All in % sng,tourneys

Postby Bpug » Tue Jan 03, 2012 5:34 pm

I would like to build a stat that shows what percentage of hands they push all-in. How to edit this to work with sngs and tourneys: cnt_p_push: sum(if[ holdem_hand_player_statistics.enum_allin = 'P', 1, 0]) ?
Bpug
 
Posts: 2
Joined: Sun Oct 03, 2010 11:12 am

Re: All in % sng,tourneys

Postby kraada » Tue Jan 03, 2012 6:13 pm

That would count how many times they were all-in preflop yes. In your opportunities column you could just use cnt_hands but if walks are common in your games you might want to exclude those (lookup_actions_p.action != '')
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: All in % sng,tourneys

Postby Bpug » Tue Jan 03, 2012 6:50 pm

I got an error: [ img ] What should I do?
I am trying follow this tutorial: https://www.pokertracker.com/forums/vie ... 6&p=114853
Bpug
 
Posts: 2
Joined: Sun Oct 03, 2010 11:12 am

Re: All in % sng,tourneys

Postby WhiteRider » Wed Jan 04, 2012 4:38 am

Firstly, for tournaments you will need to add "tourney_" to the start of the database table name.
To include kraada's additional check you need to add that inside the expression, not after it:

sum(if[ tourney_holdem_hand_player_statistics.enum_allin = 'P' AND lookup_actions_p.action != '', 1, 0])

See the Tutorial: Custom Reports and Statistics for more information on how to construct column expressions.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


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

Who is online

Users browsing this forum: No registered users and 5 guests