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
by warrior04 » Fri Feb 18, 2011 5:02 am
i'm having some problem writing an SQL statement...
I wanna write a query that check how many players are still in the game when it's the Hero's turn. (let's say on Pre-flop)
the general idea would be something like...
(number of players that where dealt a hand) - (sum of players that fold until Hero)
-
warrior04
-
- Posts: 39
- Joined: Wed Jul 21, 2010 11:44 am
by kraada » Fri Feb 18, 2011 9:16 am
That's not going to be possible in a way that would work as a custom statistic due to the way that PT3 stores data on the hand.
You can see how many players reached each street though using holdem_hand_summary.cnt_players_f (and _t and _r).
-
kraada
- Moderator
-
- Posts: 54430
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by warrior04 » Fri Feb 18, 2011 12:42 pm
i don't wanna built it as custom statistic i'm using PostgreSQL Query tool directly...
-
warrior04
-
- Posts: 39
- Joined: Wed Jul 21, 2010 11:44 am
by kraada » Fri Feb 18, 2011 1:13 pm
I think that should be doable though I'd need to give it some thought in order to come up with it.
-
kraada
- Moderator
-
- Posts: 54430
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by i3bet4fun » Tue Feb 22, 2011 4:16 am
Hi is there a stat that will show how many players were dealt into a current hand for tourneys?
Thanks.
-
i3bet4fun
-
- Posts: 6
- Joined: Tue Oct 27, 2009 7:12 am
by WhiteRider » Tue Feb 22, 2011 5:08 am
No - PT3 does not have any information about the current hand. All information is read from the hand history which is written when the hand completes.
-
WhiteRider
- Moderator
-
- Posts: 54025
- Joined: Sat Jan 19, 2008 7:06 pm
- Location: UK
Return to Custom Stats, Reports, and SQL [Read Only]
Users browsing this forum: No registered users and 0 guests