duplicate columns in other sections

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

duplicate columns in other sections

Postby raph156 » Fri Aug 19, 2011 4:01 pm

Hi,
How duplicate columns for a section to another?
Thanks foryour help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: duplicate columns in other sections

Postby WhiteRider » Sat Aug 20, 2011 5:00 am

If you convert a stat from one section to another (Tutorial) any columns used by the stat will be converted too.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: duplicate columns in other sections

Postby raph156 » Sun Aug 21, 2011 6:00 am

Hi,
convert from "holdem cash hand" to "holdem cash player statistics" seems to be impossible? I think i need it cause to custom my graph the stats used are in "holdem cash player statistics" and the stats i need, i had created it in "holdem cash hand"
Tx for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: duplicate columns in other sections

Postby WhiteRider » Sun Aug 21, 2011 6:58 am

Ah yes - you can't convert automatically between "hands" and "player" sections, but stats in those sections tend to be pretty similar, except that in the hand section they are a boolean (true/false) value and in the player section they are a count of the number of times it was true for a hand.

To convert a stat like that, all you need to do is add sum( if[ ... , 1, 0 ]) around your hand column expression, or remove it from the player expression.

e.g. If you have a hand stat which determines whether a player 3-bet preflop and the column expression is:
holdem_hand_player_statistics.flg_p_3bet
..then the equivalent column for a player stat would be:
sum( if[ holdem_hand_player_statistics.flg_p_3bet, 1, 0 ])

I use that kind of thing quite a lot when testing stats and data, and you can see my tutorial on building pairs of stats like this by clicking here.
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 0 guests