Fold raise to a reraise?

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

Fold raise to a reraise?

Postby Spielerin » Wed Sep 03, 2008 12:16 am

Hey everyone,

I apologize in advance since I think this is a rather easy stat but I can't seem to get it to work right. I want to count how often someone raises and then folds to a reraise. I started with the limp/reraise column from the repository:
sum( if[tourney_holdem_hand_player_statistics.flg_p_limp AND tourney_holdem_hand_player_statistics.flg_p_fold, 1, 0] )

But I can't seem to modify it correctly to change from limp to raise. I replace the limp piece and come up with this:
sum( if[tourney_holdem_hand_player_statistics.cnt_p_raise AND tourney_holdem_hand_player_statistics.flg_p_fold, 1, 0] )

And it tells me that the code isn't valid. I'm not too familiar with writing these so go easy on me... what do I have wrong here??
Spielerin
 
Posts: 2
Joined: Wed Aug 27, 2008 10:03 pm

Re: Fold raise to a reraise?

Postby WhiteRider » Wed Sep 03, 2008 10:20 am

tourney_holdem_hand_player_statistics.cnt_p_raise is a "count" (hence the cnt_ prefix, so you need to check for it being > 0).
flg_ prefixed fields are flags, so are boolean (true/false) values, but cnt_ is numeric (i.e. you can only fold or not, but you can raise multiple times).
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Fold raise to a reraise?

Postby Spielerin » Wed Sep 03, 2008 10:05 pm

Ok, but I did try changing "cnt" to "flg" and that does not seem to work either?
Spielerin
 
Posts: 2
Joined: Wed Aug 27, 2008 10:03 pm

Re: Fold raise to a reraise?

Postby WhiteRider » Thu Sep 04, 2008 12:15 pm

You're using the correct DB fields, but you need to check cnt_p_raise > 0, like this:

sum( if[tourney_holdem_hand_player_statistics.cnt_p_raise>0 AND tourney_holdem_hand_player_statistics.flg_p_fold, 1, 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 5 guests