VPIP depending on increasing BB, tell me where the error occ

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

VPIP depending on increasing BB, tell me where the error occ

Postby egorzar » Sat Feb 05, 2011 9:06 pm

VPIP depending on increasing BB, tell me where the error occurred.

In PokerTracker stats for their use in the SNG does not take into account the growth of BB because of this benefit is so basic stats (VPIP and PRF) comnitelna, but there is an opportunity to write their articles.

Here's my attempt rializovat this opportunity to VPIP depending on> BB

VP $ IP = (cnt_vpip / cnt_hands) * 100

cnt_vpip = sum (if [tourney_holdem_hand_player_statistics.flg_vpip, 1, 0])

cnt_hands = sum (if [tourney_holdem_hand_player_statistics.id_hand> 0, 1, 0])


As I understand the need (in the form of uposchennom), add dependency> BB, for example
the early stage of BB <100

BB values are: live_table_stat ('amt_bb')> 100

Now when trying to create a column:

cnt_vp1 = sum (if [tourney_holdem_hand_player_statistics.flg_vpip AND live_table_stat ('amt_bb')> 100, 1, 0])

and column:

cnt_h1 = sum (if [tourney_holdem_hand_player_statistics.id_hand> 0 AND live_table_stat ('amt_bb')> 100, 1, 0])

Getting error "The statement is not valid SQL"
egorzar
 
Posts: 1
Joined: Tue Feb 09, 2010 12:51 pm

Re: VPIP depending on increasing BB, tell me where the error

Postby kraada » Sun Feb 06, 2011 9:35 am

The live stats are only for statistics which display on the table right now based on the player's stats from last hand.

You want to use:

(holdem_hand_player_detail.amt_before / holdem_limit.amt_bb) > 100 (or < 100 or whichever) and that will do what you want to do.
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 3 guests