stat formulation

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

stat formulation

Postby raph156 » Sun Aug 21, 2011 1:08 pm

there is something wrong
sum( if[ (holdem_hand_player_statistics.id_holecard = 169) AND (holdem_hand_player_statistics.flg_won_hand), 100-51.28, if[ (holdem_hand_player_statistics.id_holecard = 169) AND (NOT holdem_hand_player_statistics.flg_won_hand), -51.28, 0])
Tx for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: stat formulation

Postby WhiteRider » Sun Aug 21, 2011 1:27 pm

You're missing a close square bracket for one of the IF statements - you only have one for two IFs.

sum( if[ (holdem_hand_player_statistics.id_holecard = 169) AND (holdem_hand_player_statistics.flg_won_hand), 100-51.28, if[ (holdem_hand_player_statistics.id_holecard = 169) AND (NOT holdem_hand_player_statistics.flg_won_hand), -51.28, 0]])
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