help whit custom stats

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

help whit custom stats

Postby kroma » Sat Mar 24, 2012 11:04 am

hi i need help whit columns stats, is correct?

Code: Select all
stats: call 2bet preflop

-colum name: cnt_p_call_2bet


sum( if[holdem_hand_player_statistics.cnt_p_3bet_opp AND
 ((lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) , 1, 0])

-colum name: cnt_p_call_2bet_opp

sum( if[cnt_p_3bet_opp , 1, 0])



stat: call 2bet preflop and wtsd

colum: cnt_p_call_2bet_wtsd

sum( if[holdem_hand_player_statistics.cnt_p_3bet_opp AND
 ((lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND
 holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) AND
holdem_hand_player_statistics.flg_showdown, 1, 0])

colum: cnt_p_call_2bet_f_saw

sum( if[holdem_hand_player_statistics.cnt_p_3bet_opp AND
 ((lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND
 holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) AND
holdem_hand_player_statistics.flg_f_saw, 1, 0])

stat: call 2bet preflop and wtsd (specific/s hole cards)

premiun(AK+/JJ+)

colum: cnt_p_call_2bet_wtsd_premiun

sum( if[holdem_hand_player_statistics.cnt_p_3bet_opp AND
 ((lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND
 holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) AND
holdem_hand_player_statistics.flg_showdown AND
(holdem_hand_player_statistics.id_holecard = 1 OR
holdem_hand_player_statistics.id_holecard = 2 OR
holdem_hand_player_statistics.id_holecard = 3 OR
holdem_hand_player_statistics.id_holecard = 26 OR
holdem_hand_player_statistics.id_holecard = 49 OR
holdem_hand_player_statistics.id_holecard = 70), 1, 0])

colum: cnt_p_call_2bet_wtsd

sum( if[holdem_hand_player_statistics.cnt_p_3bet_opp AND
 ((lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND
 holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) AND
holdem_hand_player_statistics.flg_showdown, 1, 0])
kroma
 
Posts: 14
Joined: Wed Feb 22, 2012 10:49 am

Re: help whit custom stats

Postby kroma » Sat Mar 24, 2012 12:03 pm

i not can edit post, i see errors in first post,this is correct
kroma wrote:hi i need help whit columns stats, is correct?

Code: Select all
stats: call 2bet preflop

-colum name: cnt_p_call_2bet


sum( if[holdem_hand_player_statistics.flg_p_3bet_opp AND
 (lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) , 1, 0])

-colum name: cnt_p_call_2bet_opp

sum( if[holdem_hand_player_statistics.flg_p_3bet_opp , 1, 0])



stat: call 2bet preflop and wtsd

colum: cnt_p_call_2bet_wtsd

sum( if[holdem_hand_player_statistics.flg_p_3bet_opp AND
 (lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND
 holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) AND
holdem_hand_player_statistics.flg_showdown, 1, 0])

colum: cnt_p_call_2bet_f_saw

sum( if[holdem_hand_player_statistics.flg_p_3bet_opp AND
 (lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND
 holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) AND
holdem_hand_player_statistics.flg_f_saw, 1, 0])

stat: call 2bet preflop and wtsd (specific/s hole cards)

premiun(AK+/JJ+)

colum: cnt_p_call_2bet_wtsd_premiun

sum( if[holdem_hand_player_statistics.flg_p_3bet_opp AND
 (lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND
 holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) AND
holdem_hand_player_statistics.flg_showdown AND
(holdem_hand_player_statistics.id_holecard = 1 OR
holdem_hand_player_statistics.id_holecard = 2 OR
holdem_hand_player_statistics.id_holecard = 3 OR
holdem_hand_player_statistics.id_holecard = 26 OR
holdem_hand_player_statistics.id_holecard = 49 OR
holdem_hand_player_statistics.id_holecard = 70), 1, 0])

colum: cnt_p_call_2bet_wtsd

sum( if[holdem_hand_player_statistics.flg_p_3bet_opp AND
 (lookup_actions_p.action LIKE 'C' OR
 (lookup_actions_p.action LIKE 'CC' AND
 holdem_hand_player_statistics.flg_p_limp)) AND NOT
 (holdem_hand_player_statistics.flg_p_3bet_def_opp OR
holdem_hand_player_statistics.flg_p_4bet_def_opp) AND
holdem_hand_player_statistics.flg_showdown, 1, 0])
kroma
 
Posts: 14
Joined: Wed Feb 22, 2012 10:49 am

Re: help whit custom stats

Postby kraada » Mon Mar 26, 2012 10:29 am

That looks good.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: help whit custom stats

Postby kroma » Tue Mar 27, 2012 12:27 pm

thx for see
kroma
 
Posts: 14
Joined: Wed Feb 22, 2012 10:49 am


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 6 guests