What's wrong with this custom column?

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

What's wrong with this custom column?

Postby RobertRock » Fri Oct 10, 2008 12:12 pm

Hi,

I am trying to create a column to count the number of occurences that a player bet on the river and see the showdown. Because there is already a similar column for raising and seeing the showdown, I copied it and changed it slightly to fit my need. Unfortunately I get the following error when saving "The statement is not valid SQL".

Here is the original cnt_r_raise_wtsd:
sum(if[holdem_hand_player_statistics.cnt_r_raise > 0 AND holdem_hand_player_statistics.flg_showdown, 1, 0])

Here is the revised one that gives the error:
sum(if[holdem_hand_player_statistics.cnt_r_bet > 0 AND holdem_hand_player_statistics.flg_showdown, 1, 0])

Thanks for any help.
RobertRock
 
Posts: 1
Joined: Mon May 26, 2008 10:12 am

Re: What's wrong with this custom column?

Postby kraada » Fri Oct 10, 2008 12:20 pm

There isn't a cnt_r_bet field in the database; it's being created as a column.

What you want is:
Code: Select all
sum(if[holdem_hand_player_statistics.flg_r_bet AND holdem_hand_player_statistics.flg_showdown, 1, 0])
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