culumns

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

culumns

Postby raph156 » Thu Oct 06, 2011 7:27 am

Hi,
i want when id= and bb and make an action pre flop (so villain didnt fold in HU).
when bet pre flop 11 25 and bb and id=
There must be something wrong cause my stats dont work.


sum( if[ ((holdem_hand_player_statistics.id_holecard = 1 OR holdem_hand_player_statistics.id_holecard = 26 OR holdem_hand_player_statistics.id_holecard = 49 OR holdem_hand_player_statistics.id_holecard = 70 OR holdem_hand_player_statistics.id_holecard = 89 OR holdem_hand_player_statistics.id_holecard = 106 OR holdem_hand_player_statistics.id_holecard = 121 OR holdem_hand_player_statistics.id_holecard = 2) AND (holdem_hand_player_statistics.flg_blind_b) AND (( substring(lookup_actions_p.action from 1 for 1)='X') OR (substring(lookup_actions_p.action from 1 for 1)='R') OR (substring(lookup_actions_p.action from 1 for 1)='F') OR (substring(lookup_actions_p.action from 1 for 1)='C'))) ,1, 0])

sum( if[((holdem_hand_player_detail.amt_bet_p BETWEEN ( 11*holdem_limit.amt_bb) AND ( 25*holdem_limit.amt_bb)) AND (holdem_hand_player_statistics.flg_blind_b) AND (holdem_hand_player_statistics.id_holecard = 1 OR holdem_hand_player_statistics.id_holecard = 26 OR holdem_hand_player_statistics.id_holecard = 49 OR holdem_hand_player_statistics.id_holecard = 70 OR holdem_hand_player_statistics.id_holecard = 89 OR holdem_hand_player_statistics.id_holecard = 106 OR holdem_hand_player_statistics.id_holecard = 121 OR holdem_hand_player_statistics.id_holecard = 2)) ,1 ,0])

Thanks for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: culumns

Postby raph156 » Thu Oct 06, 2011 7:41 am

thise one dont work too:
sum( if[(holdem_hand_player_detail.amt_bet_p BETWEEN ( 11*holdem_limit.amt_bb) AND ( 25*holdem_limit.amt_bb) AND holdem_hand_player_statistics.flg_blind_b AND holdem_hand_player_statistics.flg_won_hand ) ,1 ,0])

sum( if[(holdem_hand_player_detail.amt_bet_p BETWEEN ( 11*holdem_limit.amt_bb) AND ( 25*holdem_limit.amt_bb) AND holdem_hand_player_statistics.flg_blind_b ) ,1 ,0])

i tryed with more () but no change
sum( if[((holdem_hand_player_detail.amt_bet_p BETWEEN ( 11*holdem_limit.amt_bb) AND ( 25*holdem_limit.amt_bb)) AND holdem_hand_player_statistics.flg_blind_b AND holdem_hand_player_statistics.flg_won_hand ) ,1 ,0])
Thanks for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: culumns

Postby kraada » Thu Oct 06, 2011 8:34 am

All 5 of those validate for me - what part of them is not working for you?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: culumns

Postby raph156 » Thu Oct 06, 2011 8:53 am

Its valid, but when i want the stas on summary, there is a red message error
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: culumns

Postby kraada » Thu Oct 06, 2011 9:29 am

Please restart PT3 with the Logging Enabled link, reproduce and report this problem and we will investigate further for you.
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