bet or raise river

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

bet or raise river

Postby jscobie » Tue Nov 29, 2011 5:42 pm

Hi, I'm trying to make a stat for showing which actions have been done with what hands.
For this one that I am stuck on I am trying to count the number of times a player has bet or raised the river with highcards but it says it is invalid SQL. It is fine with just bet river but when I add "OR ......raise" it becomes invalid. I have included holdem_hand_player_statistics.flg_showdown so as not to show too many results for hero.

sum(if[ holdem_hand_player_combinations.flg_r_highcard AND holdem_hand_player_statistics.flg_showdown AND (holdem_hand_player_statistics.flg_r_bet OR holdem_hand_player_statistics.cnt_r_raise), 1, 0 ])
jscobie
 
Posts: 76
Joined: Sat Apr 30, 2011 10:48 am

Re: bet or raise river

Postby kraada » Tue Nov 29, 2011 6:52 pm

You want holdem_hand_player_statistics.cnt_r_raise > 0. cnt_r_raise is a numeric field and not true or false. It's the number of river raises the player in question made in the given hand.
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