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

stats

Postby raph156 » Mon Aug 22, 2011 4:13 am

Hi,
i created thise column
22
sum( if[ (holdem_hand_player_statistics.id_holecard = 169), 51.28, 0])
i do it for every hand
i created thise column
handnb
sum(if[holdem_hand_player_statistics.id_hand > 0, 1, 0])
i created thise stat
handvar/handnb
(22+32+32s+33+42+42s+43+43s+44+52+52s+53+53s+54+54s+55+62+62s+63+63s+64+64s+65+65s+66+72+72s+73+73s+74+74s+75+75s+76+76s+77+82+82s+83+83s+84+84s+85+85s+86+86s+87+87s+88+92+92s+93+93s+94+94s+95+95s+96+96s+97+97s+98+98s+99+T2+T2s+T3+T3s+T4+T4s+T5+T5s+T6+T6s+T7+T7s+T8+T8s+T9+T9s+TT+J2+J2s+J3+J3s+J4+J4s+J5+J5s+J6+J6s+J7+J7s+J8+J8s+J9+J9s+JT+JTs+JJ+Q2+Q2s+Q3+Q3s+Q4+Q4s+Q5+Q5s+Q6+Q6s+Q7+Q7s+Q8+Q8s+Q9+Q9s+QT+QTs+QJ+QJs+QQ+K2+K2s+K3+K3s+K4+K4s+K5+K5s+K6+K6s+K7+K7s+K8+K8s+K9+K9s+KT+KTs+KJ+KJs+KQ+KQs+KK+A2+A2s+A3+A3s+A4+A4s+A5+A5s+A6+A6s+A7+A7s+A8+A8s+A9+A9s+AT+ATs+AJ+AJs+AQ+AQs+AK+AKs+AA) / handnb
i create a report with thise stat and faillur

after i would like to have thise stats for each number of hand may be with thise stat "Hand #".
Tx for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: stats

Postby kraada » Mon Aug 22, 2011 8:22 am

Could you explain a little bit more about what is going wrong when you try to put that stat into a report? What kind of data are you receiving?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: stats

Postby raph156 » Mon Aug 22, 2011 12:45 pm

thats the same stat, i just rename thise one
its writting in red: unable to execute query: SELECT (sum((case when((holdemhandplayerstatistiqueidholdcard=169))then51,38 else 0 end)) as 22 ...
Tx for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: stats

Postby kraada » Mon Aug 22, 2011 1:13 pm

Please restart PT3 using the Logging Enabled link, reproduce and report this problem - the log will contain the full error which will be helpful in figuring out what is going wrong here for you. If you could attach the stat as well, that would be good too.
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