new: openlimp / fold validate plz!

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

new: openlimp / fold validate plz!

Postby js2002 » Fri Apr 17, 2009 7:43 am

sum(if[holdem_hand_player_statistics.position = 9 AND
holdem_hand_player_statistics.flg_p_open_opp AND
holdem_hand_player_statistics.flg_p_limp AND
holdem_hand_player_statistics.flg_p_face_raise AND
holdem_hand_player_statistics.cnt_p_raise = 0 AND
holdem_hand_player_statistics.flg_p_fold
, 1, 0])
_____________________________________________
sum(if[holdem_hand_player_statistics.position = 9 AND
holdem_hand_player_statistics.flg_p_open_opp AND
holdem_hand_player_statistics.flg_p_limp AND
holdem_hand_player_statistics.flg_p_face_raise AND
holdem_hand_player_statistics.cnt_p_raise = 0 AND

, 1, 0])

ok? should I build-in a cnt_p_call = 0 ? Or does p_limp put cnt_p_call +1 ???
EDIT: I tested and all with the p_call=0 show 0/0 so i guess it counts +1, how do I check for limpfold algain with this string ala "CF" ?!
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: new: openlimp / fold validate plz!

Postby js2002 » Fri Apr 17, 2009 8:10 am

hmmm to less sample in my DB, cant really say if it counts +1. someone tell me plz...

Does lookup_actions_p.action = 'CF' deliver me the wanted result? So, in other words: Is an (open)limp followed by a fold CF? or does sth like 'LF' exist?
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: new: openlimp / fold validate plz!

Postby kraada » Fri Apr 17, 2009 9:34 am

You want lookup_actions_p.action LIKE 'CF'. The options for the action string are: C (call), F (fold), B (Bet), R (Raise), X (Check).
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: new: openlimp / fold validate plz!

Postby js2002 » Fri Apr 17, 2009 11:33 am

sum(if[holdem_hand_player_statistics.position = 9 AND
holdem_hand_player_statistics.flg_p_open_opp AND
holdem_hand_player_statistics.flg_p_limp AND
holdem_hand_player_statistics.flg_p_face_raise AND
holdem_hand_player_statistics.cnt_p_raise = 0 AND
lookup_actions_p.action = 'CF' AND
holdem_hand_player_statistics.flg_p_fold
, 1, 0])

sum(if[holdem_hand_player_statistics.position = 9 AND
holdem_hand_player_statistics.flg_p_open_opp AND
holdem_hand_player_statistics.flg_p_limp AND
holdem_hand_player_statistics.flg_p_face_raise AND
holdem_hand_player_statistics.cnt_p_raise = 0 AND
lookup_actions_p.action = 'CF'
, 1, 0])

done, I hope it is good. n8
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: new: openlimp / fold validate plz!

Postby kraada » Fri Apr 17, 2009 4:17 pm

Given the actions like CF you don't need cnt_p_raise = 0 - you've already explicitly stated the actions the player has taken preflop so no need to test for something that can't happen.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: new: openlimp / fold validate plz!

Postby WhiteRider » Sat Apr 18, 2009 5:33 am

If you are using:

lookup_actions_p.action = 'CF'

..you don't need any of the rest of this:

holdem_hand_player_statistics.flg_p_limp AND
holdem_hand_player_statistics.flg_p_face_raise AND
holdem_hand_player_statistics.cnt_p_raise = 0 AND
holdem_hand_player_statistics.flg_p_fold

..because the actions define exactly what the player did.
They MUST have limped, faced a raise (in order to then fold), not raised, and folded.
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